public class

MessageFormat.Field

extends java.text.Format.Field

 java.lang.Object

↳java.text.AttributedCharacterIterator.Attribute

↳java.text.Format.Field

↳androidx.core.i18n.messageformat_icu.simple.MessageFormat.Field

Overview

Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from MessageFormat.formatToCharacterIterator. icu_annot::stable ICU 3.8

Summary

Fields
public static final MessageFormat.FieldARGUMENT

Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator.

from java.text.AttributedCharacterIterator.AttributeINPUT_METHOD_SEGMENT, LANGUAGE, READING
Constructors
protectedField(java.lang.String name)

Create a Field with the specified name.

Methods
protected java.lang.ObjectreadResolve()

Resolves instances being deserialized to the predefined constants.

from java.text.AttributedCharacterIterator.Attributeequals, getName, hashCode, toString
from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Fields

public static final MessageFormat.Field ARGUMENT

Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator. The value associated with the key will be an Integer indicating the index in the arguments array of the argument from which the text was generated. icu_annot::stable ICU 3.8

Constructors

protected Field(java.lang.String name)

Create a Field with the specified name.

Parameters:

name: The name of the attribute icu_annot::stable ICU 3.8

Methods

protected java.lang.Object readResolve()

Resolves instances being deserialized to the predefined constants.

Returns:

resolved MessageFormat.Field constant