Class RangeValidator<T extends Comparable<T>>
java.lang.Object
com.hypixel.hytale.codec.validation.validator.RangeValidator<T>
- All Implemented Interfaces:
Validator<T>,BiConsumer<T,ValidationResults>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(T t, ValidationResults results) private voidupdateSchema(Schema target) voidupdateSchema(SchemaContext context, Schema target) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Field Details
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
min
-
max
-
inclusive
private final boolean inclusive
-
-
Constructor Details
-
RangeValidator
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<T extends Comparable<T>,ValidationResults> - Specified by:
acceptin interfaceValidator<T extends Comparable<T>>
-
updateSchema
- Specified by:
updateSchemain interfaceValidator<T extends Comparable<T>>
-
updateSchema
-