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.
@FunctionalInterface public interface ValidatorIndex
ValidatorIndex defines the entry point for finding Validator instances for a given type.-
Field Summary
Fields Modifier and Type Field Description static ValidatorIndexALWAYS_INVALIDstatic ValidatorIndexALWAYS_VALID -
Method Summary
Modifier and Type Method Description <T> Validator<T>validatorFor(Class clazz)Retuns the validator forclazz, orALWAYS_VALIDif not found.default <T> Validator<T>validatorFor(Object instance)Retuns the validator for<T>, orALWAYS_VALIDif not found.
-
Field Details
-
Method Details
-
validatorFor
Retuns the validator forclazz, orALWAYS_VALIDif not found. -
validatorFor
Retuns the validator for<T>, orALWAYS_VALIDif not found.
-