@FunctionalInterface public interface ValidatorIndex
ValidatorIndex defines the entry point for finding Validator instances for a given type.| Modifier and Type | Field and Description |
|---|---|
static ValidatorIndex |
ALWAYS_INVALID |
static ValidatorIndex |
ALWAYS_VALID |
| Modifier and Type | Method and Description |
|---|---|
<T> Validator<T> |
validatorFor(Class clazz)
Returns the validator for
clazz, or ALWAYS_VALID if not found. |
default <T> Validator<T> |
validatorFor(Object instance)
Returns the validator for
<T>, or ALWAYS_VALID if not found. |
static final ValidatorIndex ALWAYS_VALID
static final ValidatorIndex ALWAYS_INVALID
Copyright © 2022. All rights reserved.