Class IntRangeValidator
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.validators.Validator
com.hypixel.hytale.server.npc.asset.builder.validators.IntValidator
com.hypixel.hytale.server.npc.asset.builder.validators.IntRangeValidator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final RelationalOperatorprivate final RelationalOperatorprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionIntRangeValidator(RelationalOperator relationLower, int lower, RelationalOperator relationUpper, int upper) -
Method Summary
Modifier and TypeMethodDescriptionstatic IntRangeValidatorbetween(int lower, int upper) errorMessage(int value) errorMessage(int value, String name) private StringerrorMessage0(int value, String name) static IntRangeValidatorfromExclToIncl(int lower, int upper) static IntRangeValidatorfromInclToExcl(int lower, int upper) booleantest(int value) Methods inherited from class com.hypixel.hytale.server.npc.asset.builder.validators.IntValidator
compare
-
Field Details
-
relationLower
-
lower
private final int lower -
relationUpper
-
upper
private final int upper
-
-
Constructor Details
-
IntRangeValidator
public IntRangeValidator(RelationalOperator relationLower, int lower, RelationalOperator relationUpper, int upper)
-
-
Method Details
-
test
public boolean test(int value) - Specified by:
testin classIntValidator
-
errorMessage
- Specified by:
errorMessagein classIntValidator
-
errorMessage
- Specified by:
errorMessagein classIntValidator
-
errorMessage0
-
fromInclToExcl
-
fromExclToIncl
-
between
-