Class ValidatorOffsetDateTimeBefore
java.lang.Object
io.github.mmm.validation.AbstractValidator<OffsetDateTime>
io.github.mmm.validation.AbstractValueValidator<OffsetDateTime>
io.github.mmm.validation.time.ValidatorTemporalBefore<OffsetDateTime>
io.github.mmm.validation.time.offsetdatetime.ValidatorOffsetDateTimeBefore
- All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>,Validator<OffsetDateTime>,Iterable<Validator<?>>
Implementation of
ValidatorTemporalBefore for OffsetDateTime.- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.github.mmm.validation.time.ValidatorTemporalBefore
IDFields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY -
Constructor Summary
ConstructorsConstructorDescriptionThe constructor.ValidatorOffsetDateTimeBefore(Supplier<OffsetDateTime> valueSource) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisBefore(OffsetDateTime value, OffsetDateTime limit) Methods inherited from class io.github.mmm.validation.time.ValidatorTemporalBefore
equals, getId, getMax, hashCode, isDynamic, validateNotNullMethods inherited from class io.github.mmm.validation.AbstractValueValidator
validate, validateNullMethods inherited from class io.github.mmm.validation.AbstractValidator
getChild, getChildCount, source2string, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.base.lang.Composable
iteratorMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.github.mmm.validation.Validator
append, append, containsId, getChild, getMin, getRange, isMandatory, validate
-
Constructor Details
-
ValidatorOffsetDateTimeBefore
The constructor.- Parameters:
valueSource- theSupplierof the value to compare to.
-
ValidatorOffsetDateTimeBefore
The constructor.- Parameters:
value- the value to compare to.
-
-
Method Details
-
isBefore
- Specified by:
isBeforein classValidatorTemporalBefore<OffsetDateTime>- Parameters:
value- the date to check.limit- the upper bound to compare to.- Returns:
trueifvalueis beforelimit,falseotherwise.
-