Contents
Class IntRangeBoundValidator
java.lang.Object
com.hypixel.hytale.math.range.IntRangeBoundValidator
- All Implemented Interfaces:
Validator<IntRange>, BiConsumer<IntRange, ValidationResults>
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IntRange intRange, ValidationResults results) static IntRangeBoundValidatorlowerBound(Integer min, Integer max, boolean inclusive) voidupdateSchema(SchemaContext context, Schema target) static IntRangeBoundValidatorupperBound(Integer min, Integer max, boolean inclusive) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Method Details
-
lowerBound
@Nonnull public static IntRangeBoundValidator lowerBound(Integer min, Integer max, boolean inclusive) -
upperBound
@Nonnull public static IntRangeBoundValidator upperBound(Integer min, Integer max, boolean inclusive) -
accept
- Specified by:
acceptin interfaceBiConsumer<IntRange, ValidationResults>- Specified by:
acceptin interfaceValidator<IntRange>
-
updateSchema
- Specified by:
updateSchemain interfaceValidator<IntRange>
-