Class ValidatorTemporalAfter<V extends Comparable<?>>
java.lang.Object
io.github.mmm.validation.AbstractValidator<V>
io.github.mmm.validation.AbstractValueValidator<V>
io.github.mmm.validation.temporal.ValidatorTemporalAfter<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:
ValidatorInstantAfter
,ValidatorLocalDateAfter
,ValidatorLocalDateTimeAfter
,ValidatorLocalTimeAfter
,ValidatorOffsetDateTimeAfter
,ValidatorOffsetTimeAfter
,ValidatorZonedDateTimeAfter
public abstract class ValidatorTemporalAfter<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
ConstructorsConstructorDescriptionValidatorTemporalAfter
(Supplier<V> valueSource) The constructor.ValidatorTemporalAfter
(V value) The constructor. -
Method Summary
Methods inherited from class io.github.mmm.validation.AbstractValueValidator
validate, validateNull
Methods inherited from class io.github.mmm.validation.AbstractValidator
getChild, getChildCount, 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
iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.github.mmm.validation.Validator
append, append, containsId, getChild, getMax, getRange, isMandatory, validate
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
ValidatorTemporalAfter
The constructor.- Parameters:
valueSource
- theSupplier
of the value to compare to.
-
ValidatorTemporalAfter
The constructor.- Parameters:
value
- the value to compare to.
-
-
Method Details
-
isDynamic
public boolean isDynamic()- Overrides:
isDynamic
in classAbstractValidator<V extends Comparable<?>>
-
getId
- Specified by:
getId
in interfaceValidator<V extends Comparable<?>>
- Overrides:
getId
in classAbstractValidator<V extends Comparable<?>>
-
validateNotNull
- Specified by:
validateNotNull
in classAbstractValueValidator<V extends Comparable<?>>
-
isAfter
- Parameters:
value
- the date to check.limit
- the upper bound to compare to.- Returns:
true
ifvalue
is afterlimit
,false
otherwise.
-
getMin
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractValidator<V extends Comparable<?>>
-
equals
- Overrides:
equals
in classAbstractValidator<V extends Comparable<?>>
-