public final class IntegerTypeValidator extends TypeValidator
getTypeClasses) then this validator will check if the value is of
the correct type for this field.| Modifier and Type | Method and Description |
|---|---|
protected boolean |
appliesTo(Class<?> type)
Used by apply to figure out whether to apply the validation or simply return.
|
static IntegerTypeValidator |
getInstance()
Get the instance.
|
protected void |
validate(Class<?> type,
Object value,
List<ValidationFailure> validationFailures) |
applyprotected void validate(Class<?> type, Object value, List<ValidationFailure> validationFailures)
validate in class TypeValidatorprotected boolean appliesTo(Class<?> type)
TypeValidatorappliesTo in class TypeValidatortype - the type to be validatedpublic static IntegerTypeValidator getInstance()