public static enum Scannable.Attr.RunStyle extends java.lang.Enum<Scannable.Attr.RunStyle>
Enum
enumerating the different styles an operator can run : their Enum.ordinal()
reflects the level of confidence
in their running mode枚举常量和说明 |
---|
ASYNC
the operator may change threads while running
|
SYNC
guarantees the operator doesn't change threads (strongest level of guarantee)
|
UNKNOWN
no guarantees can be given on the running mode (default value, weakest level of guarantee)
|
限定符和类型 | 方法和说明 |
---|---|
static Scannable.Attr.RunStyle |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Scannable.Attr.RunStyle[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Scannable.Attr.RunStyle UNKNOWN
public static final Scannable.Attr.RunStyle ASYNC
public static final Scannable.Attr.RunStyle SYNC
public static Scannable.Attr.RunStyle[] values()
for (Scannable.Attr.RunStyle c : Scannable.Attr.RunStyle.values()) System.out.println(c);
public static Scannable.Attr.RunStyle valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值