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

# Format.Field


`
public
static


class
Format.Field
`


`


`

`

extends https://developer.android.com/reference/java/text/AttributedCharacterIterator.Attribute


`

`


`

|---|---|---|
| [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 |

Known direct subclasses [DateFormat.Field](https://developer.android.com/reference/android/icu/text/DateFormat.Field), [MessageFormat.Field](https://developer.android.com/reference/android/icu/text/MessageFormat.Field), [NumberFormat.Field](https://developer.android.com/reference/android/icu/text/NumberFormat.Field) [DateFormat.Field](https://developer.android.com/reference/android/icu/text/DateFormat.Field) The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that DateFormat.formatToCharacterIterator() method returns. [MessageFormat.Field](https://developer.android.com/reference/android/icu/text/MessageFormat.Field) Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `MessageFormat.formatToCharacterIterator`. [NumberFormat.Field](https://developer.android.com/reference/android/icu/text/NumberFormat.Field) The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that NumberFormat.formatToCharacterIterator() method returns.   

*** ** * ** ***

Defines constants that are used as attribute keys in the
`AttributedCharacterIterator` returned
from `Format.formatToCharacterIterator` and as
field identifiers in `FieldPosition`.

## Summary

### 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/java/text/Format.Field#Field(java.lang.String)(https://developer.android.com/reference/java/lang/String name) ` Creates a Field with the specified name. |

### 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*.


## Protected constructors

### Field

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

```
protected Field (String name)
```

Creates a Field with the specified name.

<br />

| Parameters ||
|---|---|
| `name` | `String`: Name of the attribute <br /> |