Class AngleFormat.Field

All Implemented Interfaces:
Serializable
Enclosing class:
AngleFormat

public static final class AngleFormat.Field extends FormatField
Constants that are used as attribute keys in the iterator returned from AngleFormat.formatToCharacterIterator(Object).
Since:
0.3
Version:
0.3
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • DEGREES

      public static final AngleFormat.Field DEGREES
      Identifies the degrees field, including the degrees symbol (if any). When formatting a string, this value may be specified to the FieldPosition constructor in order to get the bounding index where degrees have been written.
    • MINUTES

      public static final AngleFormat.Field MINUTES
      Identifies the minutes field, including the minutes symbol (if any). When formatting a string, this value may be specified to the FieldPosition constructor in order to get the bounding index where minutes have been written.
    • SECONDS

      public static final AngleFormat.Field SECONDS
      Identifies the seconds field, including the seconds symbol (if any). When formatting a string, this value may be specified to the FieldPosition constructor in order to get the bounding index where seconds have been written.
    • HEMISPHERE

      public static final AngleFormat.Field HEMISPHERE
      Identifies the hemisphere symbol (if any). When formatting a string, this value may be specified to the FieldPosition constructor in order to get the bounding index where hemisphere have been written.
  • Constructor Details

    • Field

      private Field(String name, int fieldID)
      Creates a new field of the given name. The given name shall be identical to the name of the public static constant.
  • Method Details

    • forCode

      static AngleFormat.Field forCode(int field)
      Returns the field constant for the given numeric identifier.