public enum StravaSegmentExplorerActivityType extends Enum<StravaSegmentExplorerActivityType>
The Strava
segment explorer really should return the same activity types as held in StravaSegmentActivityType. But it doesn't. Hey ho!
| Enum Constant and Description |
|---|
RIDING
Riding
|
RUNNING
Running
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaSegmentExplorerActivityType |
create(String id)
Used by JSON deserialisation
|
String |
getDescription() |
String |
getId() |
String |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaSegmentExplorerActivityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaSegmentExplorerActivityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaSegmentExplorerActivityType RUNNING
public static final StravaSegmentExplorerActivityType RIDING
public static final StravaSegmentExplorerActivityType UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaSegmentExplorerActivityType[] values()
for (StravaSegmentExplorerActivityType c : StravaSegmentExplorerActivityType.values()) System.out.println(c);
public static StravaSegmentExplorerActivityType 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()
StravaSegmentExplorerActivityType to be used with the Strava APISegmentExplorerActivityTypeSerializer.serialize(StravaSegmentExplorerActivityType, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public static StravaSegmentExplorerActivityType create(String id)
id - The string representation of a StravaSegmentExplorerActivityType as returned by the Strava APIStravaSegmentExplorerActivityType, or UNKNOWN if there is no matchpublic String getId()
public String getDescription()
public String toString()
toString in class Enum<StravaSegmentExplorerActivityType>Enum.toString()Copyright © 2015 Dan Shannon. All rights reserved.