java.text
public static class NumberFormat.Field extends Format.Field
Modifier and Type | Field and Description |
---|---|
static NumberFormat.Field |
CURRENCY
Attribute set to all characters containing the currency unit.
|
static NumberFormat.Field |
DECIMAL_SEPARATOR
Attribute set to all characters containing a decimal separator.
|
static NumberFormat.Field |
EXPONENT
Attribute set to all characters containing digits of the exponential
part.
|
static NumberFormat.Field |
EXPONENT_SIGN
Attribute set to all characters containing the exponent sign.
|
static NumberFormat.Field |
EXPONENT_SYMBOL
Attribute set to all characters containing an exponential symbol (e.g.
|
static NumberFormat.Field |
FRACTION
Attribute set to all characters containing digits of the fractional
part.
|
static NumberFormat.Field |
GROUPING_SEPARATOR
Attribute set to all characters containing a grouping separator (e.g.
|
static NumberFormat.Field |
INTEGER
Attribute set to all characters containing digits of the integer
part.
|
static NumberFormat.Field |
PERCENT
Attribute set to all characters containing a percent symbol (e.g. '%')
|
static NumberFormat.Field |
PERMILLE
Attribute set to all characters containing a permille symbol.
|
static NumberFormat.Field |
SIGN
Attribute set to all characters containing a sign (plus or minus).
|
INPUT_METHOD_SEGMENT, LANGUAGE, READING
Modifier | Constructor and Description |
---|---|
protected |
NumberFormat.Field(String field_name)
Create a Field instance with the specified field name.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
readResolve()
This function is used by the deserializer to know which object
to use when it encounters an encoded NumberFormat.Field in a
serialization stream.
|
equals, getName, hashCode, toString
public static final NumberFormat.Field INTEGER
public static final NumberFormat.Field FRACTION
public static final NumberFormat.Field EXPONENT
public static final NumberFormat.Field DECIMAL_SEPARATOR
public static final NumberFormat.Field SIGN
public static final NumberFormat.Field GROUPING_SEPARATOR
public static final NumberFormat.Field EXPONENT_SYMBOL
public static final NumberFormat.Field PERCENT
public static final NumberFormat.Field PERMILLE
public static final NumberFormat.Field CURRENCY
public static final NumberFormat.Field EXPONENT_SIGN
protected NumberFormat.Field(String field_name)
field_name
- Field name for the new Field instance.protected Object readResolve() throws InvalidObjectException
readResolve
in class AttributedCharacterIterator.Attribute
InvalidObjectException
- if the field name is invalid.