PARENT
- the generic type of the parent builder
.public class ValidatorBuilderInstant<PARENT> extends ValidatorBuilderTime<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
Constructor and Description |
---|
ValidatorBuilderInstant(PARENT parent)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
ValidatorBuilderInstant<PARENT> |
after(AttributeReadValue<Instant> valueSource)
Adds a validator that checks that the date/time is after the given value . |
ValidatorBuilderInstant<PARENT> |
after(Instant value)
Adds a validator that checks that the date/time is after the given value . |
ValidatorBuilderInstant<PARENT> |
before(AttributeReadValue<Instant> valueSource)
Adds a validator that checks that the date/time is before the given value . |
ValidatorBuilderInstant<PARENT> |
before(Instant value)
Adds a validator that checks that the date/time is before the given value . |
ValidatorBuilderInstant<PARENT> |
future()
Adds a validator that checks that the date/time is in the future. |
protected Instant |
parse(String value) |
ValidatorBuilderInstant<PARENT> |
past()
Adds a validator that checks that the date/time is in the past. |
range, range
add, and, build, getValidators, mandatory, self
protected Instant parse(String value)
parse
in class ValidatorBuilderTime<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
value
- the value as String
.public ValidatorBuilderInstant<PARENT> past()
ValidatorBuilderTime
Adds
a validator that checks that the date/time is in the past.past
in class ValidatorBuilderTime<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
public ValidatorBuilderInstant<PARENT> future()
ValidatorBuilderTime
Adds
a validator that checks that the date/time is in the future.future
in class ValidatorBuilderTime<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
public ValidatorBuilderInstant<PARENT> after(Instant value)
ValidatorBuilderTime
Adds
a validator that checks that the date/time is after the given value
.after
in class ValidatorBuilderTime<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
value
- the date/time to compare.public ValidatorBuilderInstant<PARENT> after(AttributeReadValue<Instant> valueSource)
ValidatorBuilderTime
Adds
a validator that checks that the date/time is after the given value
.after
in class ValidatorBuilderTime<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
valueSource
- the source
of the date/time to compare.public ValidatorBuilderInstant<PARENT> before(Instant value)
ValidatorBuilderTime
Adds
a validator that checks that the date/time is before the given value
.before
in class ValidatorBuilderTime<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
value
- the date/time to compare.public ValidatorBuilderInstant<PARENT> before(AttributeReadValue<Instant> valueSource)
ValidatorBuilderTime
Adds
a validator that checks that the date/time is before the given value
.before
in class ValidatorBuilderTime<Instant,PARENT,ValidatorBuilderInstant<PARENT>>
valueSource
- the source
of the date/time to compare.Copyright © 2001–2016 mmm-Team. All rights reserved.