Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Fields](https://developer.android.com/reference/android/icu/text/NumberFormat.Field#lfields) \| [Inherited Fields](https://developer.android.com/reference/android/icu/text/NumberFormat.Field#inhfields) \| [Protected Ctors](https://developer.android.com/reference/android/icu/text/NumberFormat.Field#proctors) \| [Protected Methods](https://developer.android.com/reference/android/icu/text/NumberFormat.Field#promethods) \| [Inherited Methods](https://developer.android.com/reference/android/icu/text/NumberFormat.Field#inhmethods)

# NumberFormat.Field

*** ** * ** ***


`
public
static


class
NumberFormat.Field
`


`


`

`


`

`

extends https://developer.android.com/reference/java/text/Format.Field


`

`


`

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||||
| ↳ | [java.text.AttributedCharacterIterator.Attribute](https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute) |||
|   | ↳ | [java.text.Format.Field](https://developer.android.com/reference/java/text/Format.Field) ||
|   |   | ↳ | android.icu.text.NumberFormat.Field |

<br />

*** ** * ** ***

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.

<br />

## Summary

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#APPROXIMATELY_SIGN` Approximately sign. |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#COMPACT` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#CURRENCY` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#DECIMAL_SEPARATOR` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#EXPONENT` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#EXPONENT_SIGN` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#EXPONENT_SYMBOL` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#FRACTION` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#GROUPING_SEPARATOR` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#INTEGER` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#MEASURE_UNIT` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#PERCENT` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#PERMILLE` |
| ` public static final https://developer.android.com/reference/android/icu/text/NumberFormat.Field` | `https://developer.android.com/reference/android/icu/text/NumberFormat.Field#SIGN` |

| ### Inherited fields |
|---|
| From class `https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute` |---|---| | ` public static final https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute` | `https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute#INPUT_METHOD_SEGMENT` Attribute key for input method segments. | | ` public static final https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute` | `https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute#LANGUAGE` Attribute key for the language of some text. | | ` public static final https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute` | `https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute#READING` Attribute key for the reading of some text. | |

| ### Protected constructors ||
|---|---|
| ` https://developer.android.com/reference/android/icu/text/NumberFormat.Field#Field(java.lang.String)(https://developer.android.com/reference/java/lang/String fieldName) ` Constructs a new instance of NumberFormat.Field with the given field name. |

| ### Protected methods ||
|---|---|
| ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/android/icu/text/NumberFormat.Field#readResolve()() ` serizalization method resolve instances to the constant NumberFormat.Field values |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute ` |---|---| | ` final boolean` | ` https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Compares two objects for equality. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute#getName()() ` Returns the name of the attribute. | | ` final int` | ` https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute#hashCode()() ` Returns a hash code value for the object. | | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute#readResolve()() ` Resolves instances being deserialized to the predefined constants. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute#toString()() ` Returns a string representation of the object. | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Fields

### APPROXIMATELY_SIGN

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field APPROXIMATELY_SIGN
```

Approximately sign. In ICU 70, this was categorized under the generic SIGN field.

<br />

### COMPACT

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field COMPACT
```

<br />

<br />

### CURRENCY

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field CURRENCY
```

<br />

<br />

### DECIMAL_SEPARATOR

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field DECIMAL_SEPARATOR
```

<br />

<br />

### EXPONENT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field EXPONENT
```

<br />

<br />

### EXPONENT_SIGN

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field EXPONENT_SIGN
```

<br />

<br />

### EXPONENT_SYMBOL

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field EXPONENT_SYMBOL
```

<br />

<br />

### FRACTION

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field FRACTION
```

<br />

<br />

### GROUPING_SEPARATOR

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field GROUPING_SEPARATOR
```

<br />

<br />

### INTEGER

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field INTEGER
```

<br />

<br />

### MEASURE_UNIT

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field MEASURE_UNIT
```

<br />

<br />

### PERCENT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field PERCENT
```

<br />

<br />

### PERMILLE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field PERMILLE
```

<br />

<br />

### SIGN

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final NumberFormat.Field SIGN
```

<br />

<br />

## Protected constructors

### Field

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected Field (String fieldName)
```

Constructs a new instance of NumberFormat.Field with the given field
name.

<br />

| Parameters ||
|---|---|
| `fieldName` | `String` <br /> |

## Protected methods

### readResolve

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected Object readResolve ()
```

serizalization method resolve instances to the constant
NumberFormat.Field values

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/Object` | the resolved `Attribute` object <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/InvalidObjectException` |   |