public static class Constraints.MaxValidator extends Constraints.Validator<Number> implements javax.validation.ConstraintValidator<Constraints.Max,Number>
@Max
fields.Constructor and Description |
---|
MaxValidator() |
MaxValidator(long value) |
Modifier and Type | Method and Description |
---|---|
F.Tuple<String,Object[]> |
getErrorMessageKey() |
void |
initialize(Constraints.Max constraintAnnotation) |
boolean |
isValid(Number object) |
isValid
public static final String message
public void initialize(Constraints.Max constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<Constraints.Max,Number>
public boolean isValid(Number object)
isValid
in class Constraints.Validator<Number>
object
- the value to test.true
if this value is valid.public F.Tuple<String,Object[]> getErrorMessageKey()
getErrorMessageKey
in class Constraints.Validator<Number>