public enum StravaStreamSeriesDownsamplingType extends Enum<StravaStreamSeriesDownsamplingType> implements StravaReferenceType<String>
Method for downsampling a strava stream - either by time or by distance
| Enum Constant and Description |
|---|
DISTANCE
Downsampling by distance
|
TIME
Downsampling by time
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaStreamSeriesDownsamplingType |
create(String id)
Used by JSON deserialisation
|
String |
getDescription() |
String |
getId() |
String |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaStreamSeriesDownsamplingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaStreamSeriesDownsamplingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaStreamSeriesDownsamplingType TIME
public static final StravaStreamSeriesDownsamplingType DISTANCE
public static final StravaStreamSeriesDownsamplingType UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaStreamSeriesDownsamplingType[] values()
for (StravaStreamSeriesDownsamplingType c : StravaStreamSeriesDownsamplingType.values()) System.out.println(c);
public static StravaStreamSeriesDownsamplingType 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 static StravaStreamSeriesDownsamplingType create(String id)
id - The string representation of a StravaStreamSeriesDownsamplingType as returned by the Strava APIStravaStreamSeriesDownsamplingType, or UNKNOWN if there is no matchpublic String getDescription()
getDescription in interface StravaReferenceType<String>public String getId()
getId in interface StravaReferenceType<String>public String getValue()
getValue in interface StravaReferenceType<String>StravaStreamSeriesDownsamplingType to be used with the Strava APIpublic String toString()
toString in interface StravaReferenceType<String>toString in class Enum<StravaStreamSeriesDownsamplingType>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.