public enum BuySell extends Enum<BuySell>
Enum Constant and Description |
---|
BUY
The BUY side of a trade
|
SELL
The SELL side of a trade
|
Modifier and Type | Method and Description |
---|---|
BuySell |
opposite()
Returns the opposite side.
|
static BuySell |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuySell[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuySell BUY
public static final BuySell SELL
public static BuySell[] values()
for (BuySell c : BuySell.values()) System.out.println(c);
public static BuySell 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 BuySell opposite()
Copyright © 2015 Caplin Systems.