public static class LngValidator.LessThan extends LngValidator
LngValidator.GreaterThan, LngValidator.GreaterThanOrEqualTo, LngValidator.LessThan, LngValidator.LessThanOrEqualTo| Constructor and Description |
|---|
LessThan(long ref) |
| Modifier and Type | Method and Description |
|---|---|
String |
getTheValueMustDescription()
Get a description of the validation rule.
|
boolean |
isValidWithoutNull(Long value)
Same as isValid, but no null checking is needed.
|
getInvalidSpecificationMessage, isSpecificationValidgetInvalidMessage, isValidpublic boolean isValidWithoutNull(Long value)
BaseValidatorisValidWithoutNull in class BaseValidator<Long>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.