Class DisplayableFormat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class DisplayableFormat
    extends java.text.Format
    Formats implementations of the Displayable interface. Cannot parse.
    Since:
    1.7
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.text.Format

        java.text.Format.Field
    • 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 an UnsupportedOperationException.
      • Methods inherited from class java.text.Format

        clone, format, formatToCharacterIterator, parseObject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisplayableFormat

        private DisplayableFormat()
    • 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 is null.

        Specified by:
        format in class java.text.Format
        Throws:
        java.lang.IllegalArgumentException - if obj is not a Displayable
      • parseObject

        public java.lang.Object parseObject​(java.lang.String source,
                                            java.text.ParsePosition pos)
        Throws an UnsupportedOperationException.
        Specified by:
        parseObject in class java.text.Format
        Throws:
        java.lang.UnsupportedOperationException - always