public abstract class IntValidator extends Object implements Validator<Integer>
| Modifier and Type | Class and Description |
|---|---|
static class |
IntValidator.GreaterThan
Validate that an integer is greater than a reference value.
|
static class |
IntValidator.GreaterThanOrEqualTo
Validate that an integer is greater than or equal to a reference value.
|
static class |
IntValidator.LessThan
Validate that an integer is less than a reference value.
|
static class |
IntValidator.LessThanOrEqualTo
Validate that an integer is less than or equal to a reference value.
|
| Constructor and Description |
|---|
IntValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInvalidSpecificationMessage()
If the specification itself is invalid (such as a bad regex string), this
will build a message describing the problem to the user.
|
boolean |
isSpecificationValid()
Returns true if the validation criteria itself is valid.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInvalidMessage, getTheValueMustDescription, isValidpublic boolean isSpecificationValid()
ValidatorisSpecificationValid in interface Validator<Integer>public String getInvalidSpecificationMessage()
ValidatorgetInvalidSpecificationMessage in interface Validator<Integer>Copyright © 2017. All rights reserved.