Enum Class Group
- All Implemented Interfaces:
Serializable,Comparable<Group>,Constable
Represents the time period by which exchange rates can be downsampled.
Used as an optional query parameter when requesting rates over a date range. When specified, rates are aggregated over the given time period rather than returned as daily values.
The API accepts the lowercase string values "week" and
"month" for this parameter.
- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
WEEK
Downsample rates to one value per week. -
MONTH
Downsample rates to one value per month.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
value
Returns the API query parameter value for this group (e.g."week","month").- Returns:
- the lowercase string value used in query strings
-