public enum StravaClimbCategory extends Enum<StravaClimbCategory> implements StravaReferenceType<Integer>
Strava climb categories as applied to segments
| Enum Constant and Description |
|---|
CATEGORY1
Category 1
|
CATEGORY2
Category 2
|
CATEGORY3
Category 3
|
CATEGORY4
Category 4
|
FLAT
Category 5
|
HORS_CATEGORIE
Hors categorie
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaClimbCategory |
create(Integer id)
Used by JSON deserialisation
|
String |
getDescription() |
Integer |
getId() |
Integer |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaClimbCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaClimbCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaClimbCategory HORS_CATEGORIE
public static final StravaClimbCategory CATEGORY1
public static final StravaClimbCategory CATEGORY2
public static final StravaClimbCategory CATEGORY3
public static final StravaClimbCategory CATEGORY4
public static final StravaClimbCategory FLAT
public static final StravaClimbCategory UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaClimbCategory[] values()
for (StravaClimbCategory c : StravaClimbCategory.values()) System.out.println(c);
public static StravaClimbCategory 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 StravaClimbCategory create(Integer id)
id - The integer representation of the StravaClimbCategory as returned by the Strava APIStravaClimbCategory, or UNKNOWN if there is no matchClimbCategorySerializer.deserialize(com.google.gson.JsonElement, java.lang.reflect.Type, com.google.gson.JsonDeserializationContext)public String getDescription()
getDescription in interface StravaReferenceType<Integer>public Integer getId()
getId in interface StravaReferenceType<Integer>public Integer getValue()
getValue in interface StravaReferenceType<Integer>ClimbCategorySerializer.serialize(StravaClimbCategory, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public String toString()
toString in interface StravaReferenceType<Integer>toString in class Enum<StravaClimbCategory>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.