public class IntRangeBoundValidator implements Validator
Class IntRangeBoundValidator. Provides intrangeboundvalidator functionality for the Hytale server.
java.lang.Object > IntRangeBoundValidator
Field Summary
arraySchema
final
ArraySchema
arraySchema
Field arraySchema.
items
final
Schema[]
items
Field items.
Method Detail
lowerBound
static
IntRangeBoundValidator
lowerBound
(final Integer min, final Integer max, final boolean inclusive)
Method lowerBound.
- Parameters:
final Integerminfinal Integermaxfinal booleaninclusive
upperBound
static
IntRangeBoundValidator
upperBound
(final Integer min, final Integer max, final boolean inclusive)
Method upperBound.
- Parameters:
final Integerminfinal Integermaxfinal booleaninclusive
accept
Method accept.
- Parameters:
@Nullable final IntRangeintRange@Nonnull final ValidationResultsresults
validateBound
private
void
validateBound
(final int value, final String boundName, @Nonnull final ValidationResults results)
Method validateBound.
- Parameters:
final intvaluefinal StringboundName@Nonnull final ValidationResultsresults
if
public
else
if
(value <= this.min)
Method if.
- Parameters:
value <=this.min