Enum ChartRange
- java.lang.Object
-
- java.lang.Enum<ChartRange>
-
- pl.zankowski.iextrading4j.api.stocks.ChartRange
-
- All Implemented Interfaces:
Serializable
,Comparable<ChartRange>
public enum ChartRange extends Enum<ChartRange>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DYNAMIC
FIVE_DAYS
FIVE_DAYS_10_MIN_INTERVAL
FIVE_YEARS
INTRADAY
MAX
ONE_DAY
ONE_MONTH
ONE_MONTH_30_MIN_INTERVAL
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 ChartRange
getValueFromCode(String code)
static ChartRange
valueOf(String name)
Returns the enum constant of this type with the specified name.static ChartRange[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAX
public static final ChartRange MAX
-
INTRADAY
public static final ChartRange INTRADAY
-
ONE_DAY
public static final ChartRange ONE_DAY
-
FIVE_DAYS
public static final ChartRange FIVE_DAYS
-
FIVE_DAYS_10_MIN_INTERVAL
public static final ChartRange FIVE_DAYS_10_MIN_INTERVAL
-
ONE_MONTH
public static final ChartRange ONE_MONTH
-
ONE_MONTH_30_MIN_INTERVAL
public static final ChartRange ONE_MONTH_30_MIN_INTERVAL
-
THREE_MONTHS
public static final ChartRange THREE_MONTHS
-
SIX_MONTHS
public static final ChartRange SIX_MONTHS
-
YEAR_TO_DATE
public static final ChartRange YEAR_TO_DATE
-
ONE_YEAR
public static final ChartRange ONE_YEAR
-
TWO_YEARS
public static final ChartRange TWO_YEARS
-
FIVE_YEARS
public static final ChartRange FIVE_YEARS
-
DYNAMIC
public static final ChartRange DYNAMIC
-
-
Method Detail
-
values
public static ChartRange[] 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 (ChartRange c : ChartRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChartRange 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()
-
getValueFromCode
public static ChartRange getValueFromCode(String code)
-
-