Build 1.0_r1(from source)

java.text
Class NumberFormat.Field

java.lang.Object
  extended by java.text.AttributedCharacterIterator.Attribute
      extended by java.text.Format.Field
          extended by java.text.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 NumberFormat.formatToCharacterIterator() method returns.

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

See Also:
Serialized Form

Field Summary
static NumberFormat.Field CURRENCY
          This constant stands for the currency symbol.
static NumberFormat.Field DECIMAL_SEPARATOR
          This constant stands for the decimal separator.
static NumberFormat.Field EXPONENT
          This constant stands for the exponent part of the number.
static NumberFormat.Field EXPONENT_SIGN
          This constant stands for the exponent sign symbol.
static NumberFormat.Field EXPONENT_SYMBOL
          This constant stands for the exponent symbol.
static NumberFormat.Field FRACTION
          This constant stands for the fraction part of the number.
static NumberFormat.Field GROUPING_SEPARATOR
          This constant stands for the grouping separator.
static NumberFormat.Field INTEGER
          This constant stands for the integer part of the number.
static NumberFormat.Field PERCENT
          This constant stands for the percent symbol.
static NumberFormat.Field PERMILLE
          This constant stands for the permille symbol.
static NumberFormat.Field SIGN
          This constant stands for the number sign.
 
Fields inherited from class java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING
 
Constructor Summary
protected NumberFormat.Field(String fieldName)
          Constructs a new instance of NumberFormat.Field with the given field name.
 
Method Summary
protected  Object readResolve()
          serialization method resolve instances to the constant NumberFormat.Field values
 
Methods inherited from class java.text.AttributedCharacterIterator.Attribute
equals, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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 Detail

NumberFormat.Field

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

Parameters:
fieldName - The field name.
Method Detail

readResolve

protected Object readResolve()
                      throws InvalidObjectException
serialization method resolve instances to the constant NumberFormat.Field values

Overrides:
readResolve in class AttributedCharacterIterator.Attribute
Throws:
InvalidObjectException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature