public class DateTimeRangeValidator extends RangeValidator<LocalDateTime>
LocalDateTime is inside a given
range.| Constructor and Description |
|---|
DateTimeRangeValidator(String errorMessage,
LocalDateTime minValue,
LocalDateTime maxValue)
Creates a validator for checking that a
LocalDateTime is within a
given range. |
apply, getMaxValue, getMinValue, isMaxValueIncluded, isMinValueIncluded, isValid, of, setMaxValue, setMaxValueIncluded, setMinValue, setMinValueIncluded, toStringgetMessage, toResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysPass, from, from, from, fromandThenpublic DateTimeRangeValidator(String errorMessage, LocalDateTime minValue, LocalDateTime maxValue)
LocalDateTime is within a
given range.
By default the range is inclusive i.e. both minValue and maxValue are
valid values. Use RangeValidator.setMinValueIncluded(boolean) or
RangeValidator.setMaxValueIncluded(boolean) to change it.
errorMessage - the message to display in case the value does not validate.minValue - The minimum value to accept or null for no limitmaxValue - The maximum value to accept or null for no limitCopyright © 2020. All rights reserved.