public interface Formatter<T>
Formatter
formats an object to a string suitable for
output in a client application. The formatter may optionally also do
the reverse, ie. parse a string to an object.Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(T value)
Format a value by converting it to a string.
|
T |
parseString(java.lang.String value)
Parse a string and return a value of the correct type.
|
java.lang.String format(T value)
value
- The value to formatT parseString(java.lang.String value)
value
- The string to parse