public class ToStringFormatter<T> extends Object implements Formatter<T>
Constructor and Description |
---|
ToStringFormatter()
Create a new integer formatter.
|
Modifier and Type | Method and Description |
---|---|
String |
format(T value)
Format a value by converting it to a string.
|
T |
parseString(String value)
Parse a string and return a value of the correct type.
|
public String format(T value)
Formatter
public T parseString(String value)
Formatter
parseString
in interface Formatter<T>
value
- The string to parse