Package io.github.mmm.validation.range
Class ValidatorRange<V extends Comparable<?>>
java.lang.Object
io.github.mmm.validation.AbstractValidator<V>
io.github.mmm.validation.AbstractValueValidator<V>
io.github.mmm.validation.main.AbstractValidatorRange<V,V>
io.github.mmm.validation.range.ValidatorRange<V>
- Type Parameters:
V
- is the generic type of the value tovalidate
.
- All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>
,Validator<V>
,Iterable<Validator<?>>
- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.github.mmm.validation.main.AbstractValidatorRange
ID, range
Fields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY
-
Constructor Summary
ConstructorsConstructorDescriptionValidatorRange
(io.github.mmm.base.range.Range<V> range) The constructor.ValidatorRange
(V min, V max) The constructor. -
Method Summary
Methods inherited from class io.github.mmm.validation.main.AbstractValidatorRange
convertValue, equals, getId, getMax, getMin, getRange, hashCode, validateNotNull
Methods inherited from class io.github.mmm.validation.AbstractValueValidator
validate, validateNull
Methods inherited from class io.github.mmm.validation.AbstractValidator
getChild, getChildCount, isDynamic, source2string, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.mmm.base.lang.Composable
iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.github.mmm.validation.Validator
append, append, containsId, getChild, isMandatory, validate
-
Constructor Details
-
ValidatorRange
The constructor.- Parameters:
range
- is theRange
the value has to be within.
-
ValidatorRange
The constructor.- Parameters:
min
- is theminimum
value allowed.max
- is themaximum
value allowed.
-
-
Method Details
-
isLength
protected final boolean isLength()- Specified by:
isLength
in classAbstractValidatorRange<V extends Comparable<?>,
V extends Comparable<?>> - Returns:
true
if validating the length or size of the value,false
otherwise.
-