Enum SplitsRange
- java.lang.Object
-
- java.lang.Enum<SplitsRange>
-
- pl.zankowski.iextrading4j.client.rest.request.stocks.SplitsRange
-
- All Implemented Interfaces:
Serializable
,Comparable<SplitsRange>
public enum SplitsRange extends Enum<SplitsRange>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIVE_YEARS
ONE_MONTH
ONE_YEAR
SIX_MONTHS
THREE_MONTHS
TWO_YEARS
YEAR_TO_DATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
static SplitsRange
valueOf(String name)
Returns the enum constant of this type with the specified name.static SplitsRange[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_MONTH
public static final SplitsRange ONE_MONTH
-
THREE_MONTHS
public static final SplitsRange THREE_MONTHS
-
SIX_MONTHS
public static final SplitsRange SIX_MONTHS
-
YEAR_TO_DATE
public static final SplitsRange YEAR_TO_DATE
-
ONE_YEAR
public static final SplitsRange ONE_YEAR
-
TWO_YEARS
public static final SplitsRange TWO_YEARS
-
FIVE_YEARS
public static final SplitsRange FIVE_YEARS
-
-
Method Detail
-
values
public static SplitsRange[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SplitsRange c : SplitsRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SplitsRange valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public String getCode()
-
-