T
- the generic typepublic class DecimalMaxValidator<T> extends AbstractValidator<T>
Validator.Priority
Constructor and Description |
---|
DecimalMaxValidator(Number maxValue)
Constructor.
|
DecimalMaxValidator(Number maxValue,
String invalidMessageOverride)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Priority value for this validator.
|
boolean |
isValid(T value)
Checks if is valid.
|
createErrorList, getInvalidMessage, validate
public DecimalMaxValidator(Number maxValue)
maxValue
- the max valuepublic DecimalMaxValidator(Number maxValue, String invalidMessageOverride)
maxValue
- the max valueinvalidMessageOverride
- the invalid message overridepublic int getPriority()
Validator
public boolean isValid(T value)
AbstractValidator
isValid
in class AbstractValidator<T>
value
- the valueCopyright © 2018. All rights reserved.