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 Number
Returns the number range's min value, or null if none specified.@Nullable Number
Returns the number range's max value, or null if none specified.void
setup
(@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.
-