Added in API level 1

Field

open class Field : AttributedCharacterIterator.Attribute
DateFormat.Field

The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that DateFormat.

DateFormat.Field

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

MessageFormat.Field

Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from MessageFormat.formatToCharacterIterator.

MessageFormat.Field

Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from MessageFormat.formatToCharacterIterator.

NumberFormat.Field

The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that NumberFormat.

NumberFormat.Field

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

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

Summary

Protected constructors
Field(name: String!)

Creates a Field with the specified name.

Inherited functions
Boolean equals(other: Any?)

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.

String! getName()

Returns the name of the attribute.

Int hashCode()

Returns a hash code value for the object. This version is identical to the one in Object, but is also final.

Any! readResolve()

Resolves instances being deserialized to the predefined constants.

String toString()

Returns a string representation of the object. This version returns the concatenation of class name, "(", a name identifying the attribute and ")".

Inherited properties
AttributedCharacterIterator.Attribute! INPUT_METHOD_SEGMENT

Attribute key for input method segments. Input methods often break up text into segments, which usually correspond to words.

Values are instances of Annotation holding a null reference.

AttributedCharacterIterator.Attribute! LANGUAGE

Attribute key for the language of some text.

Values are instances of Locale.

AttributedCharacterIterator.Attribute! READING

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 Annotation holding instances of String.

Protected constructors

Field

Added in API level 1
protected Field(name: String!)

Creates a Field with the specified name.

Parameters
name String!: Name of the attribute