public enum ResponseCode extends Enum<ResponseCode>
| Enum Constant and Description |
|---|
APPROVED |
DECLINED |
ERROR |
REVIEW |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ResponseCode |
findByResponseCode(int code)
Lookup a ResponseCode by it's response code.
|
static ResponseCode |
findByResponseCode(String code)
Lookup a ResponseCode by it's response code.
|
int |
getCode() |
String |
getDescription() |
static ResponseCode |
valueOf(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 APPROVED
public static final ResponseCode DECLINED
public static final ResponseCode ERROR
public static final ResponseCode REVIEW
public static final ResponseCode UNKNOWN
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode 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 nullpublic static ResponseCode findByResponseCode(int code)
code - public static ResponseCode findByResponseCode(String code)
code - public int getCode()
public String getDescription()
Copyright © 2016. All Rights Reserved.