Package io.github.mmm.validation.main
Class ComparableValidatorBuilder<V extends Comparable,PARENT,SELF extends ComparableValidatorBuilder<V,PARENT,SELF>>
- java.lang.Object
-
- io.github.mmm.validation.main.ObjectValidatorBuilder<V,PARENT,SELF>
-
- io.github.mmm.validation.main.ComparableValidatorBuilder<V,PARENT,SELF>
-
- Type Parameters:
V
- the generic type of the value tovalidate
.PARENT
- the generic type of theparent builder
.SELF
- the generic type of this builder itself (this).
- All Implemented Interfaces:
Builder<Validator<? super V>>
,ValidatorRegistry<V,SELF>
- Direct Known Subclasses:
NumberValidatorBuilder
,ValidatorBuilderTemporal
public abstract class ComparableValidatorBuilder<V extends Comparable,PARENT,SELF extends ComparableValidatorBuilder<V,PARENT,SELF>> extends ObjectValidatorBuilder<V,PARENT,SELF>
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description ComparableValidatorBuilder(PARENT parent)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELF
range(Range<V> range)
SELF
range(V min, V max)
-
-
-
Method Detail
-
range
public SELF range(Range<V> range)
- Parameters:
range
- theRange
to limit the value (or its size).- Returns:
- this build instance for fluent API calls.
- See Also:
ValidatorCollectionSize
-
range
public SELF range(V min, V max)
- Parameters:
min
- the minimum value.max
- the maximum value.- Returns:
- this build instance for fluent API calls.
- See Also:
range(Range)
-
-