|
2.8.0: 2008-09-08 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.formatter.ToStringFormatter
public class ToStringFormatter
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(Object value)
Format a value by converting it to a string. |
Number |
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(Object value)
Formatter
format
in interface Formatter<Object>
value
- The value to format
public Number parseString(String value)
Formatter
parseString
in interface Formatter<Object>
value
- The string to parse
|
2.8.0: 2008-09-08 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |