public class PastValidatorForDate extends Object implements ConstraintValidator<Past,Date>
java.util.Date
passed to be validated is in the
past.Constructor and Description |
---|
PastValidatorForDate() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Past constraintAnnotation) |
boolean |
isValid(Date date,
ConstraintValidatorContext constraintValidatorContext) |
public void initialize(Past constraintAnnotation)
initialize
in interface ConstraintValidator<Past,Date>
public boolean isValid(Date date, ConstraintValidatorContext constraintValidatorContext)
isValid
in interface ConstraintValidator<Past,Date>
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved