public static enum Transaction.Type extends Enum<Transaction.Type>
Enum Constant and Description |
---|
DEPOSIT
The transaction represents a deposit
|
WITHDRAW
The transaction represents a withdrawl
|
Modifier and Type | Method and Description |
---|---|
static Transaction.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transaction.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transaction.Type DEPOSIT
public static final Transaction.Type WITHDRAW
public static Transaction.Type[] values()
for (Transaction.Type c : Transaction.Type.values()) System.out.println(c);
public static Transaction.Type 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.