public final class KeyValueTypeValidator extends ValueValidator
| Modifier and Type | Method and Description |
|---|---|
static KeyValueTypeValidator |
getInstance()
Get the instance.
|
protected Class<?> |
getRequiredValueType()
Used by
apply to figure out whether to apply the validation or simply return. |
protected void |
validate(Class<?> type,
Object value,
List<ValidationFailure> validationFailures) |
applyprotected void validate(Class<?> type, Object value, List<ValidationFailure> validationFailures)
validate in class ValueValidatorprotected Class<?> getRequiredValueType()
ValueValidatorapply to figure out whether to apply the validation or simply return.getRequiredValueType in class ValueValidatorpublic static KeyValueTypeValidator getInstance()