Enum Constant and Description |
---|
Balance
Balance position.
|
Buy
Buying position.
|
BuyLimit
Buy limit pending position.
|
BuyStop
Buy stop pending position.
|
Credit
Credit position.
|
Sell
Selling position.
|
SellLimit
Sell limit pending position.
|
SellStop
Sell stop pending position.
|
Modifier and Type | Field and Description |
---|---|
static int |
SIZE |
Modifier and Type | Method and Description |
---|---|
static Op |
forValue(int value) |
int |
getValue() |
static Op |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Op Buy
public static final Op Sell
public static final Op BuyLimit
public static final Op SellLimit
public static final Op BuyStop
public static final Op SellStop
public static final Op Balance
public static final Op Credit
public static final int SIZE
public static Op[] values()
for (Op c : Op.values()) System.out.println(c);
public static Op 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 nullpublic int getValue()
public static Op forValue(int value)