public enum LedgerType extends Enum<LedgerType>
Enum Constant and Description |
---|
DEPOSIT |
MARGIN |
TRADE |
WITHDRAWAL |
Modifier and Type | Method and Description |
---|---|
static LedgerType |
fromString(String ledgerTypeString) |
String |
toString() |
static LedgerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LedgerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LedgerType DEPOSIT
public static final LedgerType WITHDRAWAL
public static final LedgerType TRADE
public static final LedgerType MARGIN
public static LedgerType[] values()
for (LedgerType c : LedgerType.values()) System.out.println(c);
public static LedgerType 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 nullpublic String toString()
toString
in class Enum<LedgerType>
public static LedgerType fromString(String ledgerTypeString)
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.