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