Class ValidatorBuilderOffsetDateTime<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<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>
-
- io.github.mmm.validation.temporal.offsetdatetime.ValidatorBuilderOffsetDateTime<PARENT>
-
- Type Parameters:
PARENT- the generic type of theparent builder.
- All Implemented Interfaces:
Builder<Validator<? super OffsetDateTime>>,ValidatorRegistry<OffsetDateTime,ValidatorBuilderOffsetDateTime<PARENT>>
public class ValidatorBuilderOffsetDateTime<PARENT> extends ValidatorBuilderTemporal<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description ValidatorBuilderOffsetDateTime(PARENT parent)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatorBuilderOffsetDateTime<PARENT>after(OffsetDateTime value)Addsa validator that checks that the date/time is after the givenvalue.ValidatorBuilderOffsetDateTime<PARENT>after(Supplier<OffsetDateTime> valueSource)Addsa validator that checks that the date/time is after the givenvalue.ValidatorBuilderOffsetDateTime<PARENT>before(OffsetDateTime value)Addsa validator that checks that the date/time is before the givenvalue.ValidatorBuilderOffsetDateTime<PARENT>before(Supplier<OffsetDateTime> valueSource)Addsa validator that checks that the date/time is before the givenvalue.ValidatorBuilderOffsetDateTime<PARENT>future()Addsa validator that checks that the date/time is in the future.protected OffsetDateTimeparse(String value)ValidatorBuilderOffsetDateTime<PARENT>past()Addsa validator that checks that the date/time is in the past.-
Methods inherited from class io.github.mmm.validation.temporal.ValidatorBuilderTemporal
range
-
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
-
parse
protected OffsetDateTime parse(String value)
- Specified by:
parsein classValidatorBuilderTemporal<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>- Parameters:
value- the value asString.- Returns:
- the parsed value.
-
past
public ValidatorBuilderOffsetDateTime<PARENT> past()
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is in the past.- Specified by:
pastin classValidatorBuilderTemporal<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>- Returns:
- this build instance for fluent API calls.
-
future
public ValidatorBuilderOffsetDateTime<PARENT> future()
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is in the future.- Specified by:
futurein classValidatorBuilderTemporal<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>- Returns:
- this build instance for fluent API calls.
-
after
public ValidatorBuilderOffsetDateTime<PARENT> after(OffsetDateTime value)
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is after the givenvalue.- Specified by:
afterin classValidatorBuilderTemporal<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>- Parameters:
value- the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
after
public ValidatorBuilderOffsetDateTime<PARENT> after(Supplier<OffsetDateTime> valueSource)
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is after the givenvalue.- Specified by:
afterin classValidatorBuilderTemporal<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>- Parameters:
valueSource- theSupplierof the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
before
public ValidatorBuilderOffsetDateTime<PARENT> before(OffsetDateTime value)
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is before the givenvalue.- Specified by:
beforein classValidatorBuilderTemporal<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>- Parameters:
value- the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
before
public ValidatorBuilderOffsetDateTime<PARENT> before(Supplier<OffsetDateTime> valueSource)
Description copied from class:ValidatorBuilderTemporalAddsa validator that checks that the date/time is before the givenvalue.- Specified by:
beforein classValidatorBuilderTemporal<OffsetDateTime,PARENT,ValidatorBuilderOffsetDateTime<PARENT>>- Parameters:
valueSource- theSupplierof the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
-