Package io.envoyproxy.pgv
Interface ValidatorIndex
- All Known Implementing Classes:
ExplicitValidatorIndex,ReflectiveValidatorIndex
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
ValidatorIndex defines the entry point for finding Validator instances for a given type.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> Validator<T>validatorFor(Class clazz) Returns the validator forclazz, orALWAYS_VALIDif not found.default <T> Validator<T>validatorFor(Object instance) Returns the validator for<T>, orALWAYS_VALIDif not found.
-
Field Details
-
ALWAYS_VALID
-
ALWAYS_INVALID
-
-
Method Details
-
validatorFor
Returns the validator forclazz, orALWAYS_VALIDif not found. -
validatorFor
Returns the validator for<T>, orALWAYS_VALIDif not found.
-