public enum RequestStatus extends Enum<RequestStatus>
Modifier and Type | Method and Description |
---|---|
static RequestStatus |
valueOf(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 ERROR
public static final RequestStatus SUCCESS
public static final RequestStatus TIMEOUT
public static RequestStatus[] values()
for (RequestStatus c : RequestStatus.values()) System.out.println(c);
public static RequestStatus 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