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