|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.formatter.ToStringFormatter<T>
public class ToStringFormatter<T>
A generic formatter that simply formats objects by calling the toString() method. Null values are converted to the empty string.
Constructor Summary | |
---|---|
ToStringFormatter()
Create a new integer formatter. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToStringFormatter()
Method Detail |
---|
public String format(T value)
Formatter
format
in interface Formatter<T>
value
- The value to format
public T parseString(String value)
Formatter
parseString
in interface Formatter<T>
value
- The string to parse
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |