public enum TransactionStatus extends java.lang.Enum<TransactionStatus> implements AbstractTransactionStatus
Enum Constant and Description |
---|
ALL |
APPROVED |
AUTOPAYMENT |
ERROR |
NEW |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode() |
AbstractTransactionStatus |
getStatusByCode(java.lang.String code)
Получение статуса и его описания по его коду.
|
java.lang.String |
getTitle() |
java.lang.String |
toString() |
static TransactionStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionStatus ALL
public static final TransactionStatus NEW
public static final TransactionStatus ERROR
public static final TransactionStatus AUTOPAYMENT
public static final TransactionStatus APPROVED
public static TransactionStatus[] values()
for (TransactionStatus c : TransactionStatus.values()) System.out.println(c);
public static TransactionStatus 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 java.lang.String getCode()
getCode
in interface AbstractTransactionStatus
public java.lang.String getTitle()
getTitle
in interface AbstractTransactionStatus
public java.lang.String toString()
toString
in interface AbstractTransactionStatus
toString
in class java.lang.Enum<TransactionStatus>
public AbstractTransactionStatus getStatusByCode(java.lang.String code)
getStatusByCode
in interface AbstractTransactionStatus
code
-