Interface AnnotationValidator<T extends Annotation>
- Type Parameters:
T
- annotation type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a validator of a custom annotation.
- Since:
- 2.0.0
- Author:
- MrIvanPlays
-
Method Summary
Modifier and TypeMethodDescriptionvalidate
(T annotation, Object value, CustomOptions options, Field field) AnnotationConfig calls this method whenever it finds the custom annotation this validator is bound to in order to determine whether the inputtedvalue
is valid for the custom annotation with which the inputtedField
field
was annotated.
-
Method Details
-
validate
AnnotationConfig calls this method whenever it finds the custom annotation this validator is bound to in order to determine whether the inputtedvalue
is valid for the custom annotation with which the inputtedField
field
was annotated.- Parameters:
annotation
- the annotation this validator validatesvalue
- the value AnnotationConfig receivedoptions
- the custom options for the config resolverfield
- the annotated field- Returns:
- validation response
- See Also:
-