A
- The constraint annotation type.public abstract class DateValidator<A extends Annotation> extends Object implements ConstraintValidator<A,Date>
Modifier | Constructor and Description |
---|---|
protected |
DateValidator(ConstraintValidator<A,? super Instant> validator)
Creates a new validator.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(A constraintAnnotation) |
boolean |
isValid(Date value,
ConstraintValidatorContext context) |
protected DateValidator(ConstraintValidator<A,? super Instant> validator)
validator
- The backing validator.public void initialize(A constraintAnnotation)
initialize
in interface ConstraintValidator<A extends Annotation,Date>
public boolean isValid(Date value, ConstraintValidatorContext context)
isValid
in interface ConstraintValidator<A extends Annotation,Date>
Copyright © 2021–2022. All rights reserved.