Enum Class OrderStatus
- All Implemented Interfaces:
Serializable, Comparable<OrderStatus>, Constable
Canonical order status for the engine domain.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanisFinal()Returns true if the order has reached a terminal state.booleanisOpen()Returns true if the order is still active (pending or open).static OrderStatusReturns the enum constant of this class with the specified name.static OrderStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING_NEW
-
OPEN
-
PARTIALLY_FILLED
-
FILLED
-
CANCELLED
-
EXPIRED
-
REPLACED
-
STOPPED
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isFinal
public boolean isFinal()Returns true if the order has reached a terminal state. -
isOpen
public boolean isOpen()Returns true if the order is still active (pending or open).
-