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