Serializable, Comparable<BidiAnalyzer.BidiStrategy>public static enum BidiAnalyzer.BidiStrategy extends Enum<BidiAnalyzer.BidiStrategy>
| 枚举常量 | 说明 |
|---|---|
FIRSTSTRONG_OR_LTR |
The first strong character in the text determines the general text direction of the section.
|
FIRSTSTRONG_OR_RTL |
The first strong character in the text determines the general text direction of the section.
|
LOCALE |
The general text direction of a section is determined based on
Locale. |
LTR |
The general text direction of the section is LTR.
|
RTL |
The general text direction of the section is RTL.
|
RTLEXIST_OR_LTR |
If there is at least one strong RTL character, the general text direction of the section is RTL.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static BidiAnalyzer.BidiStrategy |
getByInt(int enumInt) |
Obtains the
BidiStrategy object based on a specified enum value. |
int |
getValue() |
Obtains the value of the
BidiStrategy object. |
static BidiAnalyzer.BidiStrategy |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static BidiAnalyzer.BidiStrategy[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (BidiAnalyzer.BidiStrategy c : BidiAnalyzer.BidiStrategy.values()) System.out.println(c); |
public static final BidiAnalyzer.BidiStrategy FIRSTSTRONG_OR_LTR
public static final BidiAnalyzer.BidiStrategy FIRSTSTRONG_OR_RTL
public static final BidiAnalyzer.BidiStrategy LTR
public static final BidiAnalyzer.BidiStrategy RTL
public static final BidiAnalyzer.BidiStrategy LOCALE
Locale. For example, the text
direction of English is always LTR and that of Arabic is always RTL.public static final BidiAnalyzer.BidiStrategy RTLEXIST_OR_LTR
public static BidiAnalyzer.BidiStrategy[] values()
for (BidiAnalyzer.BidiStrategy c : BidiAnalyzer.BidiStrategy.values()) System.out.println(c);
public static BidiAnalyzer.BidiStrategy valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
BidiStrategy object.BidiStrategy object.public static BidiAnalyzer.BidiStrategy getByInt(int enumInt)
BidiStrategy object based on a specified enum value.enumInt - Indicates the enum value.BidiStrategy object.