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