Class IntSequenceValidator
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.validators.Validator
com.hypixel.hytale.server.npc.asset.builder.validators.IntArrayValidator
com.hypixel.hytale.server.npc.asset.builder.validators.IntSequenceValidator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final RelationalOperatorprivate final RelationalOperatorprivate final RelationalOperatorprivate final intprivate static final IntSequenceValidatorprivate static final IntSequenceValidatorprivate static final IntSequenceValidator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIntSequenceValidator(RelationalOperator relationLower, int lower, RelationalOperator relationUpper, int upper, RelationalOperator relationSequence) -
Method Summary
Modifier and TypeMethodDescriptionstatic IntSequenceValidatorbetween(int lower, int upper) static IntSequenceValidatorstatic IntSequenceValidatorstatic IntSequenceValidatorstatic IntSequenceValidatorbetweenMonotonic(int lower, int upper) static IntSequenceValidatorbetweenWeaklyMonotonic(int lower, int upper) errorMessage(int[] value) errorMessage(int[] value, String name) private StringerrorMessage0(int[] value, String name) static IntSequenceValidatorfromExclToIncl(int lower, int upper) static IntSequenceValidatorfromExclToInclMonotonic(int lower, int upper) static IntSequenceValidatorfromExclToInclWeaklyMonotonic(int lower, int upper) booleantest(int[] values)
-
Field Details
-
VALIDATOR_BETWEEN_01
-
VALIDATOR_BETWEEN_01_WEAKLY_MONOTONIC
-
VALIDATOR_BETWEEN_01_MONOTONIC
-
relationLower
-
lower
private final int lower -
relationUpper
-
upper
private final int upper -
relationSequence
-
-
Constructor Details
-
IntSequenceValidator
private IntSequenceValidator(RelationalOperator relationLower, int lower, RelationalOperator relationUpper, int upper, RelationalOperator relationSequence)
-
-
Method Details
-
between01
-
between01WeaklyMonotonic
-
between01Monotonic
-
between
-
betweenWeaklyMonotonic
-
betweenMonotonic
-
fromExclToIncl
-
fromExclToInclWeaklyMonotonic
-
fromExclToInclMonotonic
-
test
public boolean test(@Nonnull int[] values) - Specified by:
testin classIntArrayValidator
-
errorMessage
- Specified by:
errorMessagein classIntArrayValidator
-
errorMessage
- Specified by:
errorMessagein classIntArrayValidator
-
errorMessage0
-