almost.functional.reactive
public static enum Promise.State extends java.lang.Enum<Promise.State>
| Enum Constant and Description |
|---|
COMPLETED
The promise is completed successfully.
|
CREATED
The promise has been created.
|
ERROR
The promise had error before successful completion.
|
PENDING
The promise has been run but not completed.
|
| Modifier and Type | Method and Description |
|---|---|
static Promise.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Promise.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Promise.State CREATED
public static final Promise.State PENDING
public static final Promise.State COMPLETED
public static final Promise.State ERROR
public static Promise.State[] values()
for (Promise.State c : Promise.State.values()) System.out.println(c);
public static Promise.State valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null