Enum TimeSeriesRange
- java.lang.Object
-
- java.lang.Enum<TimeSeriesRange>
-
- pl.zankowski.iextrading4j.client.rest.request.datapoint.TimeSeriesRange
-
- All Implemented Interfaces:
Serializable
,Comparable<TimeSeriesRange>
public enum TimeSeriesRange extends Enum<TimeSeriesRange>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LAST_MONTH
LAST_QUARTER
LAST_WEEK
NEXT_MONTH
NEXT_QUARTER
NEXT_WEEK
THIS_MONTH
THIS_QUARTER
THIS_WEEK
TODAY
TOMORROW
YTD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
static TimeSeriesRange
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeSeriesRange[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TODAY
public static final TimeSeriesRange TODAY
-
YTD
public static final TimeSeriesRange YTD
-
LAST_WEEK
public static final TimeSeriesRange LAST_WEEK
-
LAST_MONTH
public static final TimeSeriesRange LAST_MONTH
-
LAST_QUARTER
public static final TimeSeriesRange LAST_QUARTER
-
TOMORROW
public static final TimeSeriesRange TOMORROW
-
THIS_WEEK
public static final TimeSeriesRange THIS_WEEK
-
THIS_MONTH
public static final TimeSeriesRange THIS_MONTH
-
THIS_QUARTER
public static final TimeSeriesRange THIS_QUARTER
-
NEXT_WEEK
public static final TimeSeriesRange NEXT_WEEK
-
NEXT_MONTH
public static final TimeSeriesRange NEXT_MONTH
-
NEXT_QUARTER
public static final TimeSeriesRange NEXT_QUARTER
-
-
Method Detail
-
values
public static TimeSeriesRange[] 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 (TimeSeriesRange c : TimeSeriesRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeSeriesRange 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()
-
-