public static class IntValidator.LessThanOrEqualTo extends IntValidator
IntValidator.GreaterThan, IntValidator.GreaterThanOrEqualTo, IntValidator.LessThan, IntValidator.LessThanOrEqualTo| Constructor and Description |
|---|
LessThanOrEqualTo(int ref) |
| Modifier and Type | Method and Description |
|---|---|
String |
getTheValueMustDescription()
Get a description of the validation rule.
|
boolean |
isValidWithoutNull(Integer value)
Same as isValid, but no null checking is needed.
|
getInvalidSpecificationMessage, isSpecificationValidgetInvalidMessage, isValidpublic boolean isValidWithoutNull(Integer value)
BaseValidatorisValidWithoutNull in class BaseValidator<Integer>value - The value, which is guaranteed to not be null.public String getTheValueMustDescription()
ValidatorAssume that the text returned is prefixed with 'The value must...'
As an example for a regex rule with the pattern 'ABC.*', the return could be: "match the regex pattern 'ABC.*'"
Copyright © 2022. All rights reserved.