Enum Class PositionStatusDTO
- All Implemented Interfaces:
Serializable
,Comparable<PositionStatusDTO>
,Constable
Position status for
PositionDTO
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionClosed - The sell order has been accepted.Closing - A sell order has been made but not yet completed.Closing failure - The sell order did not succeed.Opened - The buy order has been accepted.Opening - A position has been created, a buy order has been made but not yet completed.Opening failure - A position has been created, but the buy order did not succeed. -
Method Summary
Modifier and TypeMethodDescriptionstatic PositionStatusDTO
Returns the enum constant of this class with the specified name.static PositionStatusDTO[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPENING
Opening - A position has been created, a buy order has been made but not yet completed. -
OPENING_FAILURE
Opening failure - A position has been created, but the buy order did not succeed. -
OPENED
Opened - The buy order has been accepted. -
CLOSING
Closing - A sell order has been made but not yet completed. -
CLOSING_FAILURE
Closing failure - The sell order did not succeed. -
CLOSED
Closed - The sell order has been accepted.
-
-
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
-