public enum StravaSkillLevel extends Enum<StravaSkillLevel> implements StravaReferenceType<Integer>
| Enum Constant and Description |
|---|
CASUAL
Casual
|
HAMMERFEST
Hammerfest!
|
TEMPO
Tempo
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaSkillLevel |
create(Integer id)
Used by JSON deserialisation
|
String |
getDescription() |
Integer |
getId() |
Integer |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaSkillLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaSkillLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaSkillLevel CASUAL
public static final StravaSkillLevel TEMPO
public static final StravaSkillLevel HAMMERFEST
public static final StravaSkillLevel UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaSkillLevel[] values()
for (StravaSkillLevel c : StravaSkillLevel.values()) System.out.println(c);
public static StravaSkillLevel 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 StravaSkillLevel create(Integer id)
id - The id of the enum to returnUNKNOWN if not foundpublic String getDescription()
getDescription in interface StravaReferenceType<Integer>public Integer getId()
getId in interface StravaReferenceType<Integer>public Integer getValue()
getValue in interface StravaReferenceType<Integer>public String toString()
toString in interface StravaReferenceType<Integer>toString in class Enum<StravaSkillLevel>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.