Class ValidatorBuilderInstant<PARENT>
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.temporal.ValidatorBuilderTemporal<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
io.github.mmm.validation.temporal.instant.ValidatorBuilderInstant<PARENT>
- Type Parameters:
PARENT- the generic type of theparent builder.
- All Implemented Interfaces:
io.github.mmm.base.lang.Builder<Validator<? super Instant>>,ValidatorRegistry<Instant,ValidatorBuilderInstant<PARENT>>
public class ValidatorBuilderInstant<PARENT>
extends ValidatorBuilderTemporal<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
Validator builder for Instant.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAddsa validator that checks that the date/time is after the givenvalue.Addsa validator that checks that the date/time is after the givenvalue.Addsa validator that checks that the date/time is before the givenvalue.Addsa validator that checks that the date/time is before the givenvalue.future()Addsa validator that checks that the date/time is in the future.protected Instantpast()Addsa validator that checks that the date/time is in the past.Methods inherited from class io.github.mmm.validation.temporal.ValidatorBuilderTemporal
rangeMethods inherited from class io.github.mmm.validation.main.ComparableValidatorBuilder
range, rangeMethods inherited from class io.github.mmm.validation.main.ObjectValidatorBuilder
add, add, and, build, getValidators, mandatory, max, min, self
-
Constructor Details
-
ValidatorBuilderInstant
The constructor.- Parameters:
parent- theparentbuilder.
-
-
Method Details
-
parse
- Specified by:
parsein classValidatorBuilderTemporal<Instant,PARENT, ValidatorBuilderInstant<PARENT>> - Parameters:
value- the value asString.- Returns:
- the parsed value.
-
past
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is in the past.- Specified by:
pastin classValidatorBuilderTemporal<Instant,PARENT, ValidatorBuilderInstant<PARENT>> - Returns:
- this build instance for fluent API calls.
-
future
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is in the future.- Specified by:
futurein classValidatorBuilderTemporal<Instant,PARENT, ValidatorBuilderInstant<PARENT>> - Returns:
- this build instance for fluent API calls.
-
after
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is after the givenvalue.- Specified by:
afterin classValidatorBuilderTemporal<Instant,PARENT, ValidatorBuilderInstant<PARENT>> - Parameters:
value- the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
after
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is after the givenvalue.- Specified by:
afterin classValidatorBuilderTemporal<Instant,PARENT, ValidatorBuilderInstant<PARENT>> - Parameters:
valueSource- theSupplierof the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
before
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is before the givenvalue.- Specified by:
beforein classValidatorBuilderTemporal<Instant,PARENT, ValidatorBuilderInstant<PARENT>> - Parameters:
value- the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
before
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is before the givenvalue.- Specified by:
beforein classValidatorBuilderTemporal<Instant,PARENT, ValidatorBuilderInstant<PARENT>> - Parameters:
valueSource- theSupplierof the date/time to compare.- Returns:
- this build instance for fluent API calls.
-