Package com.longbridge.trade
Enum OrderTag
- java.lang.Object
-
- java.lang.Enum<OrderTag>
-
- com.longbridge.trade.OrderTag
-
- All Implemented Interfaces:
Serializable,Comparable<OrderTag>
public enum OrderTag extends Enum<OrderTag>
Order tag
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AllocatedSubAllocated sub orderCreditorCreditor orderDebtorDebtor orderGreyGrey market orderLongTermLong-term orderMarginCallMargin call orderNonExerciseNon-exercise orderNormalNormal orderOfflineOffline orderUnknownUnknown
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OrderTagvalueOf(String name)Returns the enum constant of this type with the specified name.static OrderTag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unknown
public static final OrderTag Unknown
Unknown
-
Normal
public static final OrderTag Normal
Normal order
-
LongTerm
public static final OrderTag LongTerm
Long-term order
-
Grey
public static final OrderTag Grey
Grey market order
-
MarginCall
public static final OrderTag MarginCall
Margin call order
-
Offline
public static final OrderTag Offline
Offline order
-
Creditor
public static final OrderTag Creditor
Creditor order
-
Debtor
public static final OrderTag Debtor
Debtor order
-
NonExercise
public static final OrderTag NonExercise
Non-exercise order
-
AllocatedSub
public static final OrderTag AllocatedSub
Allocated sub order
-
-
Method Detail
-
values
public static OrderTag[] 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 (OrderTag c : OrderTag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrderTag 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
-
-