Class ValidatorTemporalAfter<V>
- 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 AbstractValueValidator<V>
- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
-
Fields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY
-
-
Constructor Summary
Constructors Constructor Description ValidatorTemporalAfter(Supplier<V> valueSource)
The constructor.ValidatorTemporalAfter(V value)
The constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
Object
getMin()
int
hashCode()
protected abstract boolean
isAfter(V value, V limit)
boolean
isDynamic()
protected io.github.mmm.nls.NlsMessage
validateNotNull(V value)
-
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
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
getId()
, Constant Field Values
-
-
Constructor Detail
-
ValidatorTemporalAfter
public ValidatorTemporalAfter(Supplier<V> valueSource)
The constructor.- Parameters:
valueSource
- theSupplier
of the value to compare to.
-
ValidatorTemporalAfter
public ValidatorTemporalAfter(V value)
The constructor.- Parameters:
value
- the value to compare to.
-
-
Method Detail
-
isDynamic
public boolean isDynamic()
- Overrides:
isDynamic
in classAbstractValidator<V>
-
getId
public String getId()
-
validateNotNull
protected io.github.mmm.nls.NlsMessage validateNotNull(V value)
- Specified by:
validateNotNull
in classAbstractValueValidator<V>
-
isAfter
protected abstract boolean isAfter(V value, V limit)
- Parameters:
value
- the date to check.limit
- the upper bound to compare to.- Returns:
true
ifvalue
is afterlimit
,false
otherwise.
-
getMin
public Object getMin()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractValidator<V>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractValidator<V>
-
-