Package java.text
Class NumberFormat.Field
- java.lang.Object
-
- java.text.AttributedCharacterIterator.Attribute
-
- java.text.Format.Field
-
- 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 inAttributedCharacterIteratorthat theFormat.formatToCharacterIterator(Object)method returns.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NumberFormat.FieldCURRENCYThis constant stands for the currency symbol.static NumberFormat.FieldDECIMAL_SEPARATORThis constant stands for the decimal separator.static NumberFormat.FieldEXPONENTThis constant stands for the exponent part of the number.static NumberFormat.FieldEXPONENT_SIGNThis constant stands for the exponent sign symbol.static NumberFormat.FieldEXPONENT_SYMBOLThis constant stands for the exponent symbol.static NumberFormat.FieldFRACTIONThis constant stands for the fraction part of the number.static NumberFormat.FieldGROUPING_SEPARATORThis constant stands for the grouping separator.static NumberFormat.FieldINTEGERThis constant stands for the integer part of the number.static NumberFormat.FieldPERCENTThis constant stands for the percent symbol.static NumberFormat.FieldPERMILLEThis constant stands for the permille symbol.static NumberFormat.FieldSIGNThis constant stands for the number sign.-
Fields inherited from class java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING
-
-
-
-
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
-
Field
protected Field(String fieldName)
Constructs a new instance ofNumberFormat.Fieldwith the given field name.
-
-