public class PastValidatorForDate extends Object implements ConstraintValidator<Past,Date>
| Constructor and Description |
|---|
PastValidatorForDate() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Past annotation) |
boolean |
isValid(Date date,
ConstraintValidatorContext context) |
protected Date |
now()
overwrite when you need a different algorithm for 'now'.
|
public void initialize(Past annotation)
initialize in interface ConstraintValidator<Past,Date>public boolean isValid(Date date, ConstraintValidatorContext context)
isValid in interface ConstraintValidator<Past,Date>protected Date now()
Copyright © 2010–2024 The Apache Software Foundation. All rights reserved.