public enum On extends Enum<On>
| Enum Constant and Description |
|---|
CALLER_THREAD
由调用者线程执行回调
|
IO_THREAD
由线程池的线程执行回调
|
MAIN_THREAD
由主线程执行回调
|
| Modifier and Type | Method and Description |
|---|---|
static On |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static On[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final On MAIN_THREAD
public static final On CALLER_THREAD
public static final On IO_THREAD
public static On[] values()
for (On c : On.values()) System.out.println(c);
public static On valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null