| Modifier and Type | Field and Description |
|---|---|
int |
code
Code used in recorded files
|
| Modifier and Type | Method and Description |
|---|---|
static OrderType |
getTypeFromPrices(double stopPrice,
double limitPrice) |
static OrderType |
valueOf(int code) |
static OrderType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrderType |
valueOfLoose(java.lang.String name)
Parse order type from string that might not exactly match the enum.
|
static OrderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderType STP_LMT
public static final OrderType LMT
public static final OrderType MKT
public static final OrderType STP
public static OrderType[] values()
for (OrderType c : OrderType.values()) System.out.println(c);
public static OrderType 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 static OrderType valueOf(int code)
public static OrderType valueOfLoose(java.lang.String name)
name - string to parsepublic static OrderType getTypeFromPrices(double stopPrice, double limitPrice)