public class DefaultFormatter extends java.lang.Object implements ValueFormatter<java.lang.Object>
toString method.| Modifier and Type | Field and Description |
|---|---|
static DefaultFormatter |
FORMATTER
Useful static instance of this object to be used when one doesn't want to
generate lots of formatters when one will suffice
|
| Constructor and Description |
|---|
DefaultFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.lang.Object object)
Formats the specified object into an appropriate
String |
java.lang.Class<java.lang.Object> |
getType()
Returns the
Class all objects acceptable as input to the format method must be
assignable to. |
public static final DefaultFormatter FORMATTER
public java.lang.String format(java.lang.Object object)
ValueFormatterStringformat in interface ValueFormatter<java.lang.Object>object - The object to formatobjectpublic java.lang.Class<java.lang.Object> getType()
ValueFormatterClass all objects acceptable as input to the format method must be
assignable to.getType in interface ValueFormatter<java.lang.Object>ValueFormatter