Class ValidatorZonedDateTimeAfter
- java.lang.Object
-
- io.github.mmm.validation.AbstractValidator<V>
-
- io.github.mmm.validation.AbstractValueValidator<V>
-
- io.github.mmm.validation.temporal.ValidatorTemporalAfter<ZonedDateTime>
-
- io.github.mmm.validation.temporal.zoneddatetime.ValidatorZonedDateTimeAfter
-
- All Implemented Interfaces:
Composable<Validator<?>>,Validator<ZonedDateTime>,Iterable<Validator<?>>
public class ValidatorZonedDateTimeAfter extends ValidatorTemporalAfter<ZonedDateTime>
Implementation ofValidatorTemporalAfterforZonedDateTime.- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.validation.temporal.ValidatorTemporalAfter
ID
-
Fields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY
-
-
Constructor Summary
Constructors Constructor Description ValidatorZonedDateTimeAfter(ZonedDateTime value)The constructor.ValidatorZonedDateTimeAfter(Supplier<ZonedDateTime> valueSource)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisAfter(ZonedDateTime value, ZonedDateTime limit)-
Methods inherited from class io.github.mmm.validation.temporal.ValidatorTemporalAfter
equals, getId, getMin, hashCode, isDynamic, validateNotNull
-
Methods inherited from class io.github.mmm.validation.AbstractValueValidator
validate, validateNull
-
Methods inherited from class io.github.mmm.validation.AbstractValidator
source2string, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.base.lang.Composable
getChild, getChildCount, iterator
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface io.github.mmm.validation.Validator
append, append, containsId, getMax, isMandatory, validate
-
-
-
-
Constructor Detail
-
ValidatorZonedDateTimeAfter
public ValidatorZonedDateTimeAfter(Supplier<ZonedDateTime> valueSource)
The constructor.- Parameters:
valueSource- theSupplierof the value to compare to.
-
ValidatorZonedDateTimeAfter
public ValidatorZonedDateTimeAfter(ZonedDateTime value)
The constructor.- Parameters:
value- the value to compare to.
-
-
Method Detail
-
isAfter
protected boolean isAfter(ZonedDateTime value, ZonedDateTime limit)
- Specified by:
isAfterin classValidatorTemporalAfter<ZonedDateTime>- Parameters:
value- the date to check.limit- the upper bound to compare to.- Returns:
trueifvalueis afterlimit,falseotherwise.
-
-