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 Details

  • Method Details

    • validatorFor

      <T> Validator<T> validatorFor(Class clazz)
      Returns the validator for clazz, or ALWAYS_VALID if not found.
    • validatorFor

      default <T> Validator<T> validatorFor(Object instance)
      Returns the validator for <T>, or ALWAYS_VALID if not found.