com.lmax.api.order
Enum OrderType

java.lang.Object
  extended by java.lang.Enum<OrderType>
      extended by com.lmax.api.order.OrderType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OrderType>

public enum OrderType
extends java.lang.Enum<OrderType>

Enumerate the supported LMAX order types.


Enum Constant Summary
CLOSE_OUT_ORDER_POSITION
           
CLOSE_OUT_POSITION
           
LIMIT
           
MARKET
           
OFF_ORDERBOOK
           
REVERSAL
           
SETTLEMENT_ORDER
           
STOP_LOSS_MARKET_ORDER
           
STOP_LOSS_ORDER
           
STOP_PROFIT_LIMIT_ORDER
           
STOP_PROFIT_ORDER
           
UNKNOWN
          Used if the Java API does not support a particular order type.
 
Method Summary
static OrderType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OrderType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MARKET

public static final OrderType MARKET

LIMIT

public static final OrderType LIMIT

CLOSE_OUT_ORDER_POSITION

public static final OrderType CLOSE_OUT_ORDER_POSITION

CLOSE_OUT_POSITION

public static final OrderType CLOSE_OUT_POSITION

STOP_LOSS_MARKET_ORDER

public static final OrderType STOP_LOSS_MARKET_ORDER

STOP_PROFIT_LIMIT_ORDER

public static final OrderType STOP_PROFIT_LIMIT_ORDER

SETTLEMENT_ORDER

public static final OrderType SETTLEMENT_ORDER

OFF_ORDERBOOK

public static final OrderType OFF_ORDERBOOK

REVERSAL

public static final OrderType REVERSAL

STOP_PROFIT_ORDER

public static final OrderType STOP_PROFIT_ORDER

STOP_LOSS_ORDER

public static final OrderType STOP_LOSS_ORDER

UNKNOWN

public static final OrderType UNKNOWN
Used if the Java API does not support a particular order type. Should not happen normally.

Method Detail

values

public static OrderType[] 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 (OrderType c : OrderType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OrderType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null