Package io.github.mmm.validation.number
Class NumberValidatorBuilder<V extends Number & 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>
-
- io.github.mmm.validation.number.NumberValidatorBuilder<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:
ValidatorBuilderBigDecimal
,ValidatorBuilderBigInteger
,ValidatorBuilderByte
,ValidatorBuilderDouble
,ValidatorBuilderFloat
,ValidatorBuilderInteger
,ValidatorBuilderLong
,ValidatorBuilderShort
public class NumberValidatorBuilder<V extends Number & Comparable,PARENT,SELF extends ComparableValidatorBuilder<V,PARENT,SELF>> extends ComparableValidatorBuilder<V,PARENT,SELF>
Validator builder
forNumber
values.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description NumberValidatorBuilder(PARENT parent)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELF
range(String min, String max)
This method allows to define a range in a generic way.-
Methods inherited from class io.github.mmm.validation.main.ComparableValidatorBuilder
range, range
-
Methods inherited from class io.github.mmm.validation.main.ObjectValidatorBuilder
add, add, and, build, getValidators, mandatory, max, min, self
-
-
-
-
Method Detail
-
range
public SELF range(String min, String max)
Description copied from class:ObjectValidatorBuilder
This method allows to define a range in a generic way. If you have a properly typed builder please use more specific methods such asComparableValidatorBuilder.range(io.github.mmm.base.range.Range)
instead.- Specified by:
range
in classObjectValidatorBuilder<V extends Number & Comparable,PARENT,SELF extends ComparableValidatorBuilder<V,PARENT,SELF>>
- Parameters:
min
- the minimum value allowed ornull
for no lower bound.max
- the maximum value allowed ornull
for no upper bound.- Returns:
- this build instance for fluent API calls.
-
-