Package com.jgoodies.common.format
Class DisplayableFormat
- java.lang.Object
-
- java.text.Format
-
- com.jgoodies.common.format.DisplayableFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public final class DisplayableFormat extends java.text.Format
Formats implementations of theDisplayable
interface. Cannot parse.- Since:
- 1.7
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DisplayableFormat
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
DisplayableFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuffer
format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
java.lang.Object
parseObject(java.lang.String source, java.text.ParsePosition pos)
Throws anUnsupportedOperationException
.
-
-
-
Field Detail
-
INSTANCE
public static final DisplayableFormat INSTANCE
-
-
Method Detail
-
format
public java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
Appends the object's default display string, or nothing of
obj
isnull
.- Specified by:
format
in classjava.text.Format
- Throws:
java.lang.IllegalArgumentException
- ifobj
is not aDisplayable
-
parseObject
public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)
Throws anUnsupportedOperationException
.- Specified by:
parseObject
in classjava.text.Format
- Throws:
java.lang.UnsupportedOperationException
- always
-
-