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

# Field

```
open class Field : AttributedCharacterIterator.Attribute
```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [java.text.AttributedCharacterIterator.Attribute](https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute) ||
|   | ↳ | [java.text.Format.Field](https://developer.android.com/reference/kotlin/java/text/Format.Field#) |

|---|
| Known Direct Subclasses [DateFormat.Field](https://developer.android.com/reference/kotlin/java/text/DateFormat.Field), [DateFormat.Field](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.Field.html#), [MessageFormat.Field](https://developer.android.com/reference/kotlin/java/text/MessageFormat.Field), [MessageFormat.Field](https://developer.android.com/reference/kotlin/android/icu/text/MessageFormat.Field.html#), [NumberFormat.Field](https://developer.android.com/reference/kotlin/java/text/NumberFormat.Field), [NumberFormat.Field](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat.Field.html#) |---|---| | [DateFormat.Field](https://developer.android.com/reference/kotlin/java/text/DateFormat.Field) | Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `DateFormat.formatToCharacterIterator` and as field identifiers in `FieldPosition`. | | [DateFormat.Field](https://developer.android.com/reference/kotlin/android/icu/text/DateFormat.Field.html#) | The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that DateFormat. | | [MessageFormat.Field](https://developer.android.com/reference/kotlin/java/text/MessageFormat.Field) | Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `MessageFormat.formatToCharacterIterator`. | | [MessageFormat.Field](https://developer.android.com/reference/kotlin/android/icu/text/MessageFormat.Field.html#) | Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `MessageFormat.formatToCharacterIterator`. | | [NumberFormat.Field](https://developer.android.com/reference/kotlin/java/text/NumberFormat.Field) | Defines constants that are used as attribute keys in the `AttributedCharacterIterator` returned from `NumberFormat.formatToCharacterIterator` and as field identifiers in `FieldPosition`. | | [NumberFormat.Field](https://developer.android.com/reference/kotlin/android/icu/text/NumberFormat.Field.html#) | The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that NumberFormat. | |

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

## Summary

| Protected constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/java/text/Format.Field#Field(kotlin.String)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Creates a Field with the specified name. |

| Inherited functions ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute#equals(kotlin.Any)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` Compares two objects for equality. This version only returns true for `x.equals(y)` if `x` and `y` refer to the same object, and guarantees this for all subclasses. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute#getName()()` Returns the name of the attribute. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute#hashCode()()` Returns a hash code value for the object. This version is identical to the one in `Object`, but is also final. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!` | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute#readResolve()()` Resolves instances being deserialized to the predefined constants. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute#toString()()` Returns a string representation of the object. This version returns the concatenation of class name, `"("`, a name identifying the attribute and `")"`. <br /> | ||

| Inherited properties ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute` |---|---| | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute!` | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute#INPUT_METHOD_SEGMENT:java.text.AttributedCharacterIterator.Attribute` Attribute key for input method segments. Input methods often break up text into segments, which usually correspond to words. Values are instances of `https://developer.android.com/reference/kotlin/java/text/Annotation` holding a `null` reference. <br /> | | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute!` | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute#LANGUAGE:java.text.AttributedCharacterIterator.Attribute` Attribute key for the language of some text. Values are instances of `https://developer.android.com/reference/kotlin/java/util/Locale.html#`. <br /> | | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute!` | `https://developer.android.com/reference/kotlin/java/text/AttributedCharacterIterator.Attribute#READING:java.text.AttributedCharacterIterator.Attribute` Attribute key for the reading of some text. In languages where the written form and the pronunciation of a word are only loosely related (such as Japanese), it is often necessary to store the reading (pronunciation) along with the written form. Values are instances of `https://developer.android.com/reference/kotlin/java/text/Annotation` holding instances of `https://developer.android.com/reference/kotlin/java/lang/String.html#`. <br /> | ||

## Protected constructors

### Field

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

```
protected Field(name: String!)
```

Creates a Field with the specified name.

| Parameters ||
|---|---|
| `name` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: Name of the attribute |