public enum OrderState extends java.lang.Enum<OrderState> implements RobinhoodEnum
Enum Constant and Description |
---|
CANCELED |
CONFIRMED |
FAILED |
FILLED |
PARTIALLY_FILLED |
QUEUED |
REJECTED |
UNCONFIRMED |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Get the Robinhood API's string that corresponds to this enum
|
static OrderState |
parse(java.lang.String string)
Parse an
OrderState from a string. |
java.lang.String |
toString() |
static OrderState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrderState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
println
public static final OrderState QUEUED
public static final OrderState UNCONFIRMED
public static final OrderState CONFIRMED
public static final OrderState PARTIALLY_FILLED
public static final OrderState FILLED
public static final OrderState REJECTED
public static final OrderState CANCELED
public static final OrderState FAILED
public static OrderState[] values()
for (OrderState c : OrderState.values()) System.out.println(c);
public static OrderState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static OrderState parse(java.lang.String string)
OrderState
from a string.string
- The Robinhood API formatted orderstate StringOrderState
else nullpublic java.lang.String toString()
toString
in class java.lang.Enum<OrderState>
public java.lang.String getValue()
getValue
in interface RobinhoodEnum