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