public static enum MessagePattern.ArgType extends java.lang.Enum<MessagePattern.ArgType>
| 枚举常量和说明 |
|---|
CHOICE
The argument is a ChoiceFormat with one or more
((ARG_INT | ARG_DOUBLE), ARG_SELECTOR, message) tuples.
|
NONE
The argument has no specified type.
|
PLURAL
The argument is a cardinal-number PluralFormat with an optional ARG_INT or ARG_DOUBLE offset
(e.g., offset:1)
and one or more (ARG_SELECTOR [explicit-value] message) tuples.
|
SELECT
The argument is a SelectFormat with one or more (ARG_SELECTOR, message) pairs.
|
SELECTORDINAL
The argument is an ordinal-number PluralFormat
with the same style parts sequence and semantics as
PLURAL. |
SIMPLE
The argument has a "simple" type which is provided by the ARG_TYPE part.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
hasPluralStyle() |
static MessagePattern.ArgType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MessagePattern.ArgType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MessagePattern.ArgType NONE
public static final MessagePattern.ArgType SIMPLE
public static final MessagePattern.ArgType CHOICE
public static final MessagePattern.ArgType PLURAL
public static final MessagePattern.ArgType SELECT
public static final MessagePattern.ArgType SELECTORDINAL
PLURAL.public static MessagePattern.ArgType[] values()
for (MessagePattern.ArgType c : MessagePattern.ArgType.values()) System.out.println(c);
public static MessagePattern.ArgType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public boolean hasPluralStyle()
PLURAL and SELECTORDINAL.