com.ibm.icu.text
Class NumberFormat.Field
java.lang.Object
java.text.AttributedCharacterIterator.Attribute
java.text.Format.Field
com.ibm.icu.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
- Status:
- Stable ICU 3.6.
Constructor Summary |
protected |
NumberFormat.Field(String fieldName)
Constructs a new instance of NumberFormat.Field with the given field
name. |
Method Summary |
protected Object |
readResolve()
serizalization method resolve instances to the constant
NumberFormat.Field values |
SIGN
public static final NumberFormat.Field SIGN
- Status:
- Stable ICU 3.6.
INTEGER
public static final NumberFormat.Field INTEGER
- Status:
- Stable ICU 3.6.
FRACTION
public static final NumberFormat.Field FRACTION
- Status:
- Stable ICU 3.6.
EXPONENT
public static final NumberFormat.Field EXPONENT
- Status:
- Stable ICU 3.6.
EXPONENT_SIGN
public static final NumberFormat.Field EXPONENT_SIGN
- Status:
- Stable ICU 3.6.
EXPONENT_SYMBOL
public static final NumberFormat.Field EXPONENT_SYMBOL
- Status:
- Stable ICU 3.6.
DECIMAL_SEPARATOR
public static final NumberFormat.Field DECIMAL_SEPARATOR
- Status:
- Stable ICU 3.6.
GROUPING_SEPARATOR
public static final NumberFormat.Field GROUPING_SEPARATOR
- Status:
- Stable ICU 3.6.
PERCENT
public static final NumberFormat.Field PERCENT
- Status:
- Stable ICU 3.6.
PERMILLE
public static final NumberFormat.Field PERMILLE
- Status:
- Stable ICU 3.6.
CURRENCY
public static final NumberFormat.Field CURRENCY
- Status:
- Stable ICU 3.6.
NumberFormat.Field
protected NumberFormat.Field(String fieldName)
- Constructs a new instance of NumberFormat.Field with the given field
name.
- Status:
- Stable ICU 3.6.
readResolve
protected Object readResolve()
throws InvalidObjectException
- serizalization method resolve instances to the constant
NumberFormat.Field values
- Overrides:
readResolve
in class AttributedCharacterIterator.Attribute
- Throws:
InvalidObjectException
- Status:
- Stable ICU 3.6.
Copyright (c) 2011 IBM Corporation and others.