T
- the (generic) type parameter for the interface representing the type of input data being validated (e.g.
Integer or Double)public interface InputValidator<T>
InputValidationFactory
. This factory provides a set of
standard input validators that can be used for validating the input entered by the user using the virtual keyboard/keypad.
If the standard validators available in the InputValidationFactory
does not satisfy your needs, you are free
to implement your own custom validator.
Modifier and Type | Method and Description |
---|---|
String |
getMessage(T value)
Returns a meaningful message in case the value is not valid.
|
boolean |
isValid(T value) |
boolean isValid(T value)
value
- to be validatedCopyright © 2018. All rights reserved.