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