T
- the generic typepublic class SizeValidator<T> extends AbstractValidator<T>
Object.toString()
method is called to get the string representation of the
object.Validator.Priority
Constructor and Description |
---|
SizeValidator(Integer min,
Integer max) |
SizeValidator(Integer min,
Integer max,
String invalidMessageOverride) |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Priority value for this validator.
|
boolean |
isValid(T value)
Checks if is valid.
|
void |
setMax(Integer max) |
void |
setMin(Integer min) |
createErrorList, getInvalidMessage, validate
public SizeValidator(Integer min, Integer max)
public SizeValidator(Integer min, Integer max, String invalidMessageOverride)
public int getPriority()
Validator
public boolean isValid(T value)
AbstractValidator
isValid
in class AbstractValidator<T>
value
- the valueCopyright © 2018. All rights reserved.