public enum StravaClubType extends Enum<StravaClubType>
Strava club type
| Enum Constant and Description |
|---|
CASUAL
Casual
|
COMPANY
Company club
|
OTHER
Other type of club
|
SHOP
Shop club
|
TEAM
Racing team
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaClubType |
create(String id)
Used by JSON deserialisation
|
String |
getDescription() |
String |
getId() |
String |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaClubType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaClubType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaClubType CASUAL
public static final StravaClubType TEAM
public static final StravaClubType SHOP
public static final StravaClubType COMPANY
public static final StravaClubType OTHER
public static final StravaClubType UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaClubType[] values()
for (StravaClubType c : StravaClubType.values()) System.out.println(c);
public static StravaClubType 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()
StravaClubType to be used with the Strava APIClubTypeSerializer.serialize(StravaClubType, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public static StravaClubType create(String id)
id - The string representation of a StravaClubType returned by the Strava APIStravaClubType, or UNKNOWN if there is no matchpublic String getId()
public String getDescription()
public String toString()
toString in class Enum<StravaClubType>Enum.toString()Copyright © 2015 Dan Shannon. All rights reserved.