public enum BankAction extends java.lang.Enum<BankAction>
| Enum Constant and Description |
|---|
DEPOSIT_COMPLETED |
DEPOSIT_FAILED |
WITHDRAW_COMPLETED |
WITHDRAW_FAILED |
| Modifier and Type | Method and Description |
|---|---|
static BankAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BankAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BankAction WITHDRAW_COMPLETED
public static final BankAction WITHDRAW_FAILED
public static final BankAction DEPOSIT_COMPLETED
public static final BankAction DEPOSIT_FAILED
public static BankAction[] values()
for (BankAction c : BankAction.values()) System.out.println(c);
public static BankAction 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 null