public enum StravaLeaderboardDateRange extends Enum<StravaLeaderboardDateRange>
Date range options used for filtering leaderboards
| Enum Constant and Description |
|---|
THIS_MONTH
This calendar month
|
THIS_WEEK
This calendar week
|
THIS_YEAR
This calendar year
|
TODAY
Today
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaLeaderboardDateRange |
create(String id)
Used by JSON deserialisation
|
String |
getDescription() |
String |
getId() |
String |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaLeaderboardDateRange |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaLeaderboardDateRange[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaLeaderboardDateRange THIS_YEAR
public static final StravaLeaderboardDateRange THIS_MONTH
public static final StravaLeaderboardDateRange THIS_WEEK
public static final StravaLeaderboardDateRange TODAY
public static final StravaLeaderboardDateRange UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaLeaderboardDateRange[] values()
for (StravaLeaderboardDateRange c : StravaLeaderboardDateRange.values()) System.out.println(c);
public static StravaLeaderboardDateRange valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
StravaLeaderboardDateRange to be used with the Strava APILeaderboardDateRangeSerializer.serialize(StravaLeaderboardDateRange, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public static StravaLeaderboardDateRange create(String id)
id - The string representation of a StravaLeaderboardDateRange returned by the Strava APIStravaLeaderboardDateRange, or UNKNOWN if there is no matchpublic String getId()
public String getDescription()
public String toString()
toString in class Enum<StravaLeaderboardDateRange>Enum.toString()Copyright © 2015 Dan Shannon. All rights reserved.