T - the type that this formatter will parse and printpublic abstract static class Formatters.SimpleFormatter<T> extends Object
| Constructor and Description |
|---|
SimpleFormatter() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
parse(String text,
Locale locale)
Binds the field - constructs a concrete value from submitted data.
|
abstract String |
print(T t,
Locale locale)
Unbinds this field - transforms a concrete value to plain string.
|
public abstract T parse(String text, Locale locale) throws ParseException
text - the field textlocale - the current LocaleParseException - if the text could not be parsed into T