Class ValidatorBuilderOffsetTime<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<OffsetTime,PARENT,ValidatorBuilderOffsetTime<PARENT>>
io.github.mmm.validation.temporal.offsettime.ValidatorBuilderOffsetTime<PARENT>
- Type Parameters:
PARENT
- the generic type of theparent builder
.
- All Implemented Interfaces:
io.github.mmm.base.lang.Builder<Validator<? super OffsetTime>>
,ValidatorRegistry<OffsetTime,
ValidatorBuilderOffsetTime<PARENT>>
public class ValidatorBuilderOffsetTime<PARENT>
extends ValidatorBuilderTemporal<OffsetTime,PARENT,ValidatorBuilderOffsetTime<PARENT>>
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafter
(OffsetTime value) Adds
a validator that checks that the date/time is after the givenvalue
.after
(Supplier<OffsetTime> valueSource) Adds
a validator that checks that the date/time is after the givenvalue
.before
(OffsetTime value) Adds
a validator that checks that the date/time is before the givenvalue
.before
(Supplier<OffsetTime> valueSource) Adds
a validator that checks that the date/time is before the givenvalue
.future()
Adds
a validator that checks that the date/time is in the future.protected OffsetTime
past()
Adds
a 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
-
Constructor Details
-
ValidatorBuilderOffsetTime
The constructor.- Parameters:
parent
- theparent
builder.
-
-
Method Details
-
parse
- Specified by:
parse
in classValidatorBuilderTemporal<OffsetTime,
PARENT, ValidatorBuilderOffsetTime<PARENT>> - Parameters:
value
- the value asString
.- Returns:
- the parsed value.
-
past
Description copied from class:ValidatorBuilderTemporal
Adds
a validator that checks that the date/time is in the past.- Specified by:
past
in classValidatorBuilderTemporal<OffsetTime,
PARENT, ValidatorBuilderOffsetTime<PARENT>> - Returns:
- this build instance for fluent API calls.
-
future
Description copied from class:ValidatorBuilderTemporal
Adds
a validator that checks that the date/time is in the future.- Specified by:
future
in classValidatorBuilderTemporal<OffsetTime,
PARENT, ValidatorBuilderOffsetTime<PARENT>> - Returns:
- this build instance for fluent API calls.
-
after
Description copied from class:ValidatorBuilderTemporal
Adds
a validator that checks that the date/time is after the givenvalue
.- Specified by:
after
in classValidatorBuilderTemporal<OffsetTime,
PARENT, ValidatorBuilderOffsetTime<PARENT>> - Parameters:
value
- the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
after
Description copied from class:ValidatorBuilderTemporal
Adds
a validator that checks that the date/time is after the givenvalue
.- Specified by:
after
in classValidatorBuilderTemporal<OffsetTime,
PARENT, ValidatorBuilderOffsetTime<PARENT>> - Parameters:
valueSource
- theSupplier
of the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
before
Description copied from class:ValidatorBuilderTemporal
Adds
a validator that checks that the date/time is before the givenvalue
.- Specified by:
before
in classValidatorBuilderTemporal<OffsetTime,
PARENT, ValidatorBuilderOffsetTime<PARENT>> - Parameters:
value
- the date/time to compare.- Returns:
- this build instance for fluent API calls.
-
before
Description copied from class:ValidatorBuilderTemporal
Adds
a validator that checks that the date/time is before the givenvalue
.- Specified by:
before
in classValidatorBuilderTemporal<OffsetTime,
PARENT, ValidatorBuilderOffsetTime<PARENT>> - Parameters:
valueSource
- theSupplier
of the date/time to compare.- Returns:
- this build instance for fluent API calls.
-