Package io.github.mmm.validation.main
Class ValidatorBuilderBoolean<PARENT>
- java.lang.Object
-
- io.github.mmm.validation.main.ObjectValidatorBuilder<Boolean,PARENT,ValidatorBuilderBoolean<PARENT>>
-
- io.github.mmm.validation.main.ValidatorBuilderBoolean<PARENT>
-
- Type Parameters:
PARENT- the generic type of theparent builder.
- All Implemented Interfaces:
Builder<Validator<? super Boolean>>,ValidatorRegistry<Boolean,ValidatorBuilderBoolean<PARENT>>
public class ValidatorBuilderBoolean<PARENT> extends ObjectValidatorBuilder<Boolean,PARENT,ValidatorBuilderBoolean<PARENT>>
Validator builderforBoolean.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description ValidatorBuilderBoolean(PARENT parent)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatorBuilderBoolean<PARENT>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.ObjectValidatorBuilder
add, add, and, build, getValidators, mandatory, max, min, self
-
-
-
-
Method Detail
-
range
public ValidatorBuilderBoolean<PARENT> range(String min, String max)
Description copied from class:ObjectValidatorBuilderThis 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:
rangein classObjectValidatorBuilder<Boolean,PARENT,ValidatorBuilderBoolean<PARENT>>- Parameters:
min- the minimum value allowed ornullfor no lower bound.max- the maximum value allowed ornullfor no upper bound.- Returns:
- this build instance for fluent API calls.
-
-