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.FormatFormats implementations of theDisplayableinterface. Cannot parse.- Since:
- 1.7
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DisplayableFormatINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateDisplayableFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBufferformat(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)java.lang.ObjectparseObject(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
objisnull.- Specified by:
formatin classjava.text.Format- Throws:
java.lang.IllegalArgumentException- ifobjis not aDisplayable
-
parseObject
public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)Throws anUnsupportedOperationException.- Specified by:
parseObjectin classjava.text.Format- Throws:
java.lang.UnsupportedOperationException- always
-
-