Class NumberFormat.Field

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    NumberFormat

    public static class NumberFormat.Field
    extends java.text.Format.Field
    The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that NumberFormat.formatToCharacterIterator() method returns.

    There is no public constructor to this class, the only instances are the constants defined here.

    See Also:
    Serialized Form
    • Constructor Detail

      • Field

        protected Field​(java.lang.String fieldName)
        Constructs a new instance of NumberFormat.Field with the given field name.
    • Method Detail

      • readResolve

        protected java.lang.Object readResolve()
                                        throws java.io.InvalidObjectException
        serizalization method resolve instances to the constant NumberFormat.Field values
        Overrides:
        readResolve in class java.text.AttributedCharacterIterator.Attribute
        Throws:
        java.io.InvalidObjectException