public enum TimeHorizon extends java.lang.Enum<TimeHorizon> implements RobinhoodEnum
Enum Constant and Description |
---|
LONG_TIME_HORIZON |
MEDIUM_TIME_HORIZON |
SHORT_TIME_HORIZON |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Get the Robinhood API's string that corresponds to this enum
|
static TimeHorizon |
parse(java.lang.String s)
Parse a
TimeHorizon from a String |
java.lang.String |
toString() |
static TimeHorizon |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeHorizon[] |
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 TimeHorizon SHORT_TIME_HORIZON
public static final TimeHorizon MEDIUM_TIME_HORIZON
public static final TimeHorizon LONG_TIME_HORIZON
public static TimeHorizon[] values()
for (TimeHorizon c : TimeHorizon.values()) System.out.println(c);
public static TimeHorizon 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 TimeHorizon parse(java.lang.String s)
TimeHorizon
from a Strings
- The String to parse fromTimeHorizon
or nullpublic java.lang.String toString()
toString
in class java.lang.Enum<TimeHorizon>
public java.lang.String getValue()
RobinhoodEnum
getValue
in interface RobinhoodEnum