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
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 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 -
Constructor Summary
-
Method Summary
Methods inherited from class java.text.AttributedCharacterIterator.Attribute
equals, getName, hashCode, readResolve, toString
-
Field Details
-
SIGN
This constant stands for the number sign. -
INTEGER
This constant stands for the integer part of the number. -
FRACTION
This constant stands for the fraction part of the number. -
EXPONENT
This constant stands for the exponent part of the number. -
EXPONENT_SIGN
This constant stands for the exponent sign symbol. -
EXPONENT_SYMBOL
This constant stands for the exponent symbol. -
DECIMAL_SEPARATOR
This constant stands for the decimal separator. -
GROUPING_SEPARATOR
This constant stands for the grouping separator. -
PERCENT
This constant stands for the percent symbol. -
PERMILLE
This constant stands for the permille symbol. -
CURRENCY
This constant stands for the currency symbol.
-
-
Constructor Details
-
Field
Constructs a new instance ofNumberFormat.Fieldwith the given field name.- Parameters:
fieldName- the field name.
-