public class ValidatorInstantBefore extends ValidatorTimeBefore<Instant>
ValidatorTimeBefore
for Instant
.CODE
PROPERTY_MANDATORY, PROPERTY_MAXIMUM, PROPERTY_MINIMUM
Constructor and Description |
---|
ValidatorInstantBefore(AttributeReadValue<Instant> valueSource)
The constructor.
|
ValidatorInstantBefore(Instant value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isBefore(Instant value,
Instant limit) |
equals, getCode, hashCode, isDynamic, validateNotNull
validate, validateNull
append, contains, createBundle, getProperty, isMandatory, validate
public ValidatorInstantBefore(AttributeReadValue<Instant> valueSource)
valueSource
- the source
of the value to compare to.public ValidatorInstantBefore(Instant value)
value
- the value to compare to.protected boolean isBefore(Instant value, Instant limit)
isBefore
in class ValidatorTimeBefore<Instant>
value
- the date to check.limit
- the upper bound to compare to.true
if value
is before limit
, false
otherwise.Copyright © 2001–2016 mmm-Team. All rights reserved.