Package 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:
java.io.Serializable
- Enclosing class:
- NumberFormat
public static class NumberFormat.Field extends java.text.Format.FieldThe 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
Fields Modifier and Type Field Description static NumberFormat.FieldCOMPACTstatic NumberFormat.FieldCURRENCYstatic NumberFormat.FieldDECIMAL_SEPARATORstatic NumberFormat.FieldEXPONENTstatic NumberFormat.FieldEXPONENT_SIGNstatic NumberFormat.FieldEXPONENT_SYMBOLstatic NumberFormat.FieldFRACTIONstatic NumberFormat.FieldGROUPING_SEPARATORstatic NumberFormat.FieldINTEGERstatic NumberFormat.FieldMEASURE_UNITstatic NumberFormat.FieldPERCENTstatic NumberFormat.FieldPERMILLEstatic NumberFormat.FieldSIGN
-
Constructor Summary
Constructors Modifier Constructor Description protectedField(java.lang.String fieldName)Constructs a new instance of NumberFormat.Field with the given field name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectreadResolve()serizalization method resolve instances to the constant NumberFormat.Field values
-
-
-
Field Detail
-
SIGN
public static final NumberFormat.Field SIGN
-
INTEGER
public static final NumberFormat.Field INTEGER
-
FRACTION
public static final NumberFormat.Field FRACTION
-
EXPONENT
public static final NumberFormat.Field EXPONENT
-
EXPONENT_SIGN
public static final NumberFormat.Field EXPONENT_SIGN
-
EXPONENT_SYMBOL
public static final NumberFormat.Field EXPONENT_SYMBOL
-
DECIMAL_SEPARATOR
public static final NumberFormat.Field DECIMAL_SEPARATOR
-
GROUPING_SEPARATOR
public static final NumberFormat.Field GROUPING_SEPARATOR
-
PERCENT
public static final NumberFormat.Field PERCENT
-
PERMILLE
public static final NumberFormat.Field PERMILLE
-
CURRENCY
public static final NumberFormat.Field CURRENCY
-
MEASURE_UNIT
public static final NumberFormat.Field MEASURE_UNIT
-
COMPACT
public static final NumberFormat.Field COMPACT
-
-
Method Detail
-
readResolve
protected java.lang.Object readResolve() throws java.io.InvalidObjectExceptionserizalization method resolve instances to the constant NumberFormat.Field values- Overrides:
readResolvein classjava.text.AttributedCharacterIterator.Attribute- Throws:
java.io.InvalidObjectException
-
-