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