org.hibernate.validator
Class FutureValidator
java.lang.Object
org.hibernate.validator.FutureValidator
- All Implemented Interfaces:
- Serializable, Validator<Future>
public class FutureValidator
- extends Object
- implements Validator<Future>, Serializable
Check that a given date is in the future, and apply the same restriction
at the DB level
- Author:
- Emmanuel Bernard
- See Also:
- Serialized Form
Method Summary |
void |
initialize(Future parameters)
Take the annotations values |
boolean |
isValid(Object value)
does the object/element pass the constraints |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureValidator
public FutureValidator()
initialize
public void initialize(Future parameters)
- Description copied from interface:
Validator
- Take the annotations values
- Specified by:
initialize
in interface Validator<Future>
isValid
public boolean isValid(Object value)
- Description copied from interface:
Validator
- does the object/element pass the constraints
- Specified by:
isValid
in interface Validator<Future>