public enum ResponseCode extends java.lang.Enum<ResponseCode>
Enum Constant and Description |
---|
AUTHORIZATION_FAILED |
ID_NOT_FOUND |
INVALID_FORMAT |
OK |
OPERATION_NOT_SUPPORTED |
TOKEN_EXPIRED |
TOO_MUCH_DATA_REQUESTED |
VERIFICATION_FAILED |
Modifier and Type | Method and Description |
---|---|
byte |
getValue() |
static ResponseCode |
of(byte value) |
static ResponseCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCode OK
public static final ResponseCode INVALID_FORMAT
public static final ResponseCode OPERATION_NOT_SUPPORTED
public static final ResponseCode AUTHORIZATION_FAILED
public static final ResponseCode VERIFICATION_FAILED
public static final ResponseCode ID_NOT_FOUND
public static final ResponseCode TOO_MUCH_DATA_REQUESTED
public static final ResponseCode TOKEN_EXPIRED
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode 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 nullpublic byte getValue()
public static ResponseCode of(byte value)