public static enum DepositWithdrawal.OperationType extends Enum<DepositWithdrawal.OperationType>
Enum Constant and Description |
---|
DEPOSIT |
WITHDRAWAL |
Modifier and Type | Method and Description |
---|---|
static DepositWithdrawal.OperationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DepositWithdrawal.OperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DepositWithdrawal.OperationType DEPOSIT
public static final DepositWithdrawal.OperationType WITHDRAWAL
public static DepositWithdrawal.OperationType[] values()
for (DepositWithdrawal.OperationType c : DepositWithdrawal.OperationType.values()) System.out.println(c);
public static DepositWithdrawal.OperationType 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 nullCopyright © 2016. All rights reserved.