org.hibernate.validator.internal.constraintvalidators
Class PastValidatorForDate
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.PastValidatorForDate
- All Implemented Interfaces:
- ConstraintValidator<Past,Date>
public class PastValidatorForDate
- extends Object
- implements ConstraintValidator<Past,Date>
Check that the java.util.Date passed to be validated is in the
past.
- Author:
- Alaa Nassef
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PastValidatorForDate
public PastValidatorForDate()
initialize
public void initialize(Past constraintAnnotation)
- Specified by:
initialize in interface ConstraintValidator<Past,Date>
isValid
public boolean isValid(Date date,
ConstraintValidatorContext constraintValidatorContext)
- Specified by:
isValid in interface ConstraintValidator<Past,Date>
Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved