Class DoubleSequenceValidator
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.validators.Validator
com.hypixel.hytale.server.npc.asset.builder.validators.DoubleArrayValidator
com.hypixel.hytale.server.npc.asset.builder.validators.DoubleSequenceValidator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final RelationalOperatorprivate final RelationalOperatorprivate final RelationalOperatorprivate final doubleprivate static final DoubleSequenceValidatorprivate static final DoubleSequenceValidatorprivate static final DoubleSequenceValidatorprivate static final DoubleSequenceValidatorprivate static final DoubleSequenceValidator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDoubleSequenceValidator(RelationalOperator relationLower, double lower, RelationalOperator relationUpper, double upper, RelationalOperator relationSequence) -
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleSequenceValidatorbetween(double lower, double upper) static DoubleSequenceValidatorstatic DoubleSequenceValidatorstatic DoubleSequenceValidatorstatic DoubleSequenceValidatorbetweenMonotonic(double lower, double upper) static DoubleSequenceValidatorbetweenWeaklyMonotonic(double lower, double upper) errorMessage(double[] value) errorMessage(double[] value, String name) private StringerrorMessage0(double[] value, String name) static DoubleSequenceValidatorfromExclToIncl(double lower, double upper) static DoubleSequenceValidatorfromExclToInclMonotonic(double lower, double upper) static DoubleSequenceValidatorfromExclToInclWeaklyMonotonic(double lower, double upper) static DoubleSequenceValidatorbooleantest(double[] values) static DoubleSequenceValidator
-
Field Details
-
VALIDATOR_BETWEEN_01
-
VALIDATOR_BETWEEN_01_WEAKLY_MONOTONIC
-
VALIDATOR_BETWEEN_01_MONOTONIC
-
VALIDATOR_WEAKLY_MONOTONIC
-
VALIDATOR_MONOTONIC
-
relationLower
-
lower
private final double lower -
relationUpper
-
upper
private final double upper -
relationSequence
-
-
Constructor Details
-
DoubleSequenceValidator
private DoubleSequenceValidator(RelationalOperator relationLower, double lower, RelationalOperator relationUpper, double upper, RelationalOperator relationSequence)
-
-
Method Details
-
between01
-
between01WeaklyMonotonic
-
between01Monotonic
-
between
-
betweenWeaklyMonotonic
-
betweenMonotonic
-
fromExclToIncl
-
fromExclToInclWeaklyMonotonic
@Nonnull public static DoubleSequenceValidator fromExclToInclWeaklyMonotonic(double lower, double upper) -
fromExclToInclMonotonic
-
monotonic
-
weaklyMonotonic
-
test
public boolean test(@Nonnull double[] values) - Specified by:
testin classDoubleArrayValidator
-
errorMessage
- Specified by:
errorMessagein classDoubleArrayValidator
-
errorMessage
- Specified by:
errorMessagein classDoubleArrayValidator
-
errorMessage0
-