Package io.github.mmm.validation.time
Class ValidatorTemporalBefore<V extends Comparable<?>>
java.lang.Object
io.github.mmm.validation.AbstractValidator<V>
io.github.mmm.validation.AbstractValueValidator<V>
io.github.mmm.validation.time.ValidatorTemporalBefore<V>
- Type Parameters:
V- is the generic type of the value tovalidate.
- All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>,Validator<V>,Iterable<Validator<?>>
- Direct Known Subclasses:
ValidatorInstantBefore,ValidatorLocalDateBefore,ValidatorLocalDateTimeBefore,ValidatorLocalTimeBefore,ValidatorOffsetDateTimeBefore,ValidatorOffsetTimeBefore,ValidatorZonedDateTimeBefore
public abstract class ValidatorTemporalBefore<V extends Comparable<?>>
extends AbstractValueValidator<V>
- Since:
- 1.0.0
-
Field Summary
FieldsFields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY -
Constructor Summary
ConstructorsConstructorDescriptionValidatorTemporalBefore(Supplier<V> valueSource) The constructor.ValidatorTemporalBefore(V value) The constructor. -
Method Summary
Methods 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
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
ValidatorTemporalBefore
The constructor.- Parameters:
valueSource- theSupplierof the value to compare to.
-
ValidatorTemporalBefore
The constructor.- Parameters:
value- the value to compare to.
-
-
Method Details
-
isDynamic
public boolean isDynamic()- Overrides:
isDynamicin classAbstractValidator<V extends Comparable<?>>
-
getId
- Specified by:
getIdin interfaceValidator<V extends Comparable<?>>- Overrides:
getIdin classAbstractValidator<V extends Comparable<?>>
-
validateNotNull
- Specified by:
validateNotNullin classAbstractValueValidator<V extends Comparable<?>>
-
isBefore
- Parameters:
value- the date to check.limit- the upper bound to compare to.- Returns:
trueifvalueis beforelimit,falseotherwise.
-
getMax
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractValidator<V extends Comparable<?>>
-
equals
- Overrides:
equalsin classAbstractValidator<V extends Comparable<?>>
-