public enum ResponseCode extends java.lang.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(java.lang.String code)
Lookup a ResponseCode by it's response code.
|
int |
getCode() |
java.lang.String |
getDescription() |
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 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(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 static ResponseCode findByResponseCode(int code)
code - public static ResponseCode findByResponseCode(java.lang.String code)
code - public int getCode()
public java.lang.String getDescription()
Copyright © 2018. All Rights Reserved.