public enum RequestStatus extends java.lang.Enum<RequestStatus>
| Enum Constant and Description |
|---|
CANCELED |
FAILED |
IO_PENDING |
SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
static RequestStatus |
valueOf(int value) |
static RequestStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static RequestStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final RequestStatus SUCCESS
public static final RequestStatus IO_PENDING
public static final RequestStatus CANCELED
public static final RequestStatus FAILED
public static RequestStatus[] values()
for (RequestStatus c : RequestStatus.values()) System.out.println(c);
public static RequestStatus 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 name
java.lang.NullPointerException - if the argument is null
public static RequestStatus valueOf(int value)