Serializable, Comparable<RangedRichStyle.Flag>public static enum RangedRichStyle.Flag extends Enum<RangedRichStyle.Flag>
The inclusion relationship determines whether to apply the specified rich style to characters inserted at the start and end of the rich text.
| 枚举常量 | 说明 |
|---|---|
EXCLUDE |
Indicates that the rich style is not applied to the characters inserted at the start or end of the
rich text, so the coverage of the rich style is not affected.
|
INCLUDE_END |
Indicates that the rich style is applied to the characters inserted at the end of the rich text,
so the coverage of the rich style is increased.
|
INCLUDE_START |
Indicates that the rich style is applied to the characters inserted at the start of the rich text,
so the coverage of the rich style is increased.
|
INCLUDE_START_AND_END |
Indicates that the rich style is applied to the characters inserted at the start and end of the rich
text, so the coverage of the rich style is increased.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static RangedRichStyle.Flag |
getByInt(int enumInt) |
Obtains the
RangedRichStyle.Flag instance based on the specified enumInt. |
int |
getValue() |
Obtains the integral value of a
RangedRichStyle.Flag instance. |
static RangedRichStyle.Flag |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static RangedRichStyle.Flag[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (RangedRichStyle.Flag c : RangedRichStyle.Flag.values()) System.out.println(c); |
public static final RangedRichStyle.Flag EXCLUDE
public static final RangedRichStyle.Flag INCLUDE_START
public static final RangedRichStyle.Flag INCLUDE_END
public static final RangedRichStyle.Flag INCLUDE_START_AND_END
public static RangedRichStyle.Flag[] values()
for (RangedRichStyle.Flag c : RangedRichStyle.Flag.values()) System.out.println(c);
public static RangedRichStyle.Flag valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
RangedRichStyle.Flag instance.public static RangedRichStyle.Flag getByInt(int enumInt)
RangedRichStyle.Flag instance based on the specified enumInt.enumInt - Indicates the integer value of the RangedRichStyle.Flag instance.RangedRichStyle.Flag instance matching the enumInt.