Interface NumberRangeValidator
- All Superinterfaces:
Cloneable,Validator,ValueValidator
- All Known Implementing Classes:
NumberRangeValidatorImpl
Verifies that a number is within an allowed range.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.validate.api.validators.Validator
Validator.MergeMode -
Method Summary
Modifier and TypeMethodDescription@Nullable NumberReturns the number range's min value, or null if none specified.@Nullable NumberReturns the number range's max value, or null if none specified.voidsetup(@Nullable Double lowerBound, boolean includeLowerBound, @Nullable Double upperBound, boolean includeUpperBound) Methods inherited from interface ch.tocco.nice2.validate.api.validators.Validator
canMergeConstraints, clone, doContinueOnFailure, doNegate, getLevel, getName, getRunOn, getType, hasName, mergeConstraints, setContinue, setLevel, setName, setNegate, setRunOn, validate
-
Method Details
-
setup
-
getLowerBound
Returns the number range's min value, or null if none specified. -
getUpperBound
Returns the number range's max value, or null if none specified.
-