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>
Interface representing the input validators created by 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.
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 validated.true
if value is valid.Copyright © 2021. All rights reserved.