public enum LegType extends Enum<LegType>
The LegType denotes the set of enums that represent the type of leg types available in the Motif.
Enum Constant and Description |
---|
FAR
The far leg of a trade
|
NEAR
The near leg of a trade
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static LegType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LegType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LegType NEAR
public static final LegType FAR
public static LegType[] values()
for (LegType c : LegType.values()) System.out.println(c);
public static LegType 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 © 2018 Caplin Systems.