Most visited

Recently visited

Added in API level 24

MessageFormat.Field

public static class MessageFormat.Field
extends Format.Field

java.lang.Object
   ↳ java.text.AttributedCharacterIterator.Attribute
     ↳ java.text.Format.Field
       ↳ android.icu.text.MessageFormat.Field


定义从 MessageFormat.formatToCharacterIterator返回的 AttributedCharacterIterator中用作属性键的 MessageFormat.formatToCharacterIterator

Summary

Fields

public static final MessageFormat.Field ARGUMENT

常量标识从传递到 formatToCharacterIterator的参数生成的消息的一部分。

Inherited fields

From class java.text.AttributedCharacterIterator.Attribute

Protected constructors

MessageFormat.Field(String name)

用指定的名称创建一个 Field

Protected methods

Object readResolve()

将正在反序列化的实例解析为预定义的常量。

Inherited methods

From class java.text.AttributedCharacterIterator.Attribute
From class java.lang.Object

Fields

ARGUMENT

Added in API level 24
MessageFormat.Field ARGUMENT

常量标识从传入formatToCharacterIterator的参数生成的消息的一部分。 与该键关联的值将是Integer指示生成文本的参数arguments数组中的索引。

Protected constructors

MessageFormat.Field

Added in API level 24
MessageFormat.Field (String name)

用指定的名称创建一个 Field

Parameters
name String: The name of the attribute

Protected methods

readResolve

Added in API level 24
Object readResolve ()

将正在反序列化的实例解析为预定义的常量。

Returns
Object resolved MessageFormat.Field constant
Throws
InvalidObjectException if the constant could not be resolved.

Hooray!