Package com.longport.trade
Enum OrderTag
- java.lang.Object
-
- java.lang.Enum<OrderTag>
-
- com.longport.trade.OrderTag
-
- All Implemented Interfaces:
Serializable
,Comparable<OrderTag>
public enum OrderTag extends Enum<OrderTag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AllocatedSub
Creditor
Debtor
Grey
LongTerm
MarginCall
NonExercise
Normal
Offline
Unknown
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OrderTag
valueOf(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
-
Normal
public static final OrderTag Normal
-
LongTerm
public static final OrderTag LongTerm
-
Grey
public static final OrderTag Grey
-
MarginCall
public static final OrderTag MarginCall
-
Offline
public static final OrderTag Offline
-
Creditor
public static final OrderTag Creditor
-
Debtor
public static final OrderTag Debtor
-
NonExercise
public static final OrderTag NonExercise
-
AllocatedSub
public static final OrderTag AllocatedSub
-
-
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
-
-