public static enum Promise.State extends Enum<Promise.State>
Enum Constant and Description |
---|
Fulfilled
the operation completed successfully.
|
Pending
initial state, neither fulfilled nor rejected.
|
Rejected
the operation failed.
|
Modifier and Type | Method and Description |
---|---|
static Promise.State |
valueOf(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.
|
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
public static final Promise.State Pending
public static final Promise.State Fulfilled
public static final Promise.State Rejected
public static Promise.State[] values()
for (Promise.State c : Promise.State.values()) System.out.println(c);
public static Promise.State 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