public class ValidatorLocalDateBefore extends ValidatorTimeBefore<LocalDate>
ValidatorTimeBefore
for LocalDate
.CODE
PROPERTY_MANDATORY, PROPERTY_MAXIMUM, PROPERTY_MINIMUM
Constructor and Description |
---|
ValidatorLocalDateBefore(AttributeReadValue<LocalDate> valueSource)
The constructor.
|
ValidatorLocalDateBefore(LocalDate value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isBefore(LocalDate value,
LocalDate limit) |
equals, getCode, hashCode, isDynamic, validateNotNull
validate, validateNull
append, contains, createBundle, getProperty, isMandatory, validate
public ValidatorLocalDateBefore(AttributeReadValue<LocalDate> valueSource)
valueSource
- the source
of the value to compare to.public ValidatorLocalDateBefore(LocalDate value)
value
- the value to compare to.protected boolean isBefore(LocalDate value, LocalDate limit)
isBefore
in class ValidatorTimeBefore<LocalDate>
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.