Package com.longbridge.trade
Enum MultiLegStrategy
- java.lang.Object
-
- java.lang.Enum<MultiLegStrategy>
-
- com.longbridge.trade.MultiLegStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<MultiLegStrategy>
public enum MultiLegStrategy extends Enum<MultiLegStrategy>
Multi-leg strategy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CalendarCallSpreadCalendar call spreadCalendarPutSpreadCalendar put spreadCollarCollarCoveredCallCovered call (covered stock)CoveredPutCovered put (covered stock)StraddleStraddleStrangleStrangleUnknownUnknownVerticalCallSpreadVertical call spreadVerticalPutSpreadVertical put spread
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiLegStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static MultiLegStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unknown
public static final MultiLegStrategy Unknown
Unknown
-
CoveredCall
public static final MultiLegStrategy CoveredCall
Covered call (covered stock)
-
CoveredPut
public static final MultiLegStrategy CoveredPut
Covered put (covered stock)
-
VerticalCallSpread
public static final MultiLegStrategy VerticalCallSpread
Vertical call spread
-
VerticalPutSpread
public static final MultiLegStrategy VerticalPutSpread
Vertical put spread
-
Collar
public static final MultiLegStrategy Collar
Collar
-
Straddle
public static final MultiLegStrategy Straddle
Straddle
-
Strangle
public static final MultiLegStrategy Strangle
Strangle
-
CalendarCallSpread
public static final MultiLegStrategy CalendarCallSpread
Calendar call spread
-
CalendarPutSpread
public static final MultiLegStrategy CalendarPutSpread
Calendar put spread
-
-
Method Detail
-
values
public static MultiLegStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MultiLegStrategy c : MultiLegStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiLegStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-