Package java.text

Class NumberFormat.Field

All Implemented Interfaces:
Serializable
Enclosing class:
NumberFormat

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

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

See Also:
Serialized Form
  • Field Details

    • SIGN

      public static final NumberFormat.Field SIGN
      This constant stands for the number sign.
    • INTEGER

      public static final NumberFormat.Field INTEGER
      This constant stands for the integer part of the number.
    • FRACTION

      public static final NumberFormat.Field FRACTION
      This constant stands for the fraction part of the number.
    • EXPONENT

      public static final NumberFormat.Field EXPONENT
      This constant stands for the exponent part of the number.
    • EXPONENT_SIGN

      public static final NumberFormat.Field EXPONENT_SIGN
      This constant stands for the exponent sign symbol.
    • EXPONENT_SYMBOL

      public static final NumberFormat.Field EXPONENT_SYMBOL
      This constant stands for the exponent symbol.
    • DECIMAL_SEPARATOR

      public static final NumberFormat.Field DECIMAL_SEPARATOR
      This constant stands for the decimal separator.
    • GROUPING_SEPARATOR

      public static final NumberFormat.Field GROUPING_SEPARATOR
      This constant stands for the grouping separator.
    • PERCENT

      public static final NumberFormat.Field PERCENT
      This constant stands for the percent symbol.
    • PERMILLE

      public static final NumberFormat.Field PERMILLE
      This constant stands for the permille symbol.
    • CURRENCY

      public static final NumberFormat.Field CURRENCY
      This constant stands for the currency symbol.
  • Constructor Details

    • Field

      protected Field​(String fieldName)
      Constructs a new instance of NumberFormat.Field with the given field name.
      Parameters:
      fieldName - the field name.