A
- The constraint annotation type.T
- The TemporalAccessor
type to validate.public abstract class ValueValidator<A extends Annotation,T extends TemporalAccessor> extends BaseValidator<A,T>
TemporalAccessor
validators that validate the entire value.Modifier | Constructor and Description |
---|---|
protected |
ValueValidator(Function<A,BiPredicate<T,ClockProvider>> predicateExtractor)
Creates a new validator.
|
initialize, isValid, minus, not, plus, useReplacementMessageTemplate
protected ValueValidator(Function<A,BiPredicate<T,ClockProvider>> predicateExtractor)
predicateExtractor
- A function that extracts a predicate from a constraint annotation.
This predicate will be called from BaseValidator.isValid(Object, ConstraintValidatorContext)
,
with as arguments the value to validate and the ClockProvider
returned by
ConstraintValidatorContext.getClockProvider()
.Copyright © 2021–2022. All rights reserved.