public enum StravaTerrainType extends Enum<StravaTerrainType> implements StravaReferenceType<Integer>
| Enum Constant and Description |
|---|
KILLER_CLIMBS
Killer climbs
|
MOSTLY_FLAT
Mostly flat
|
ROLLING_HILLS
Rolling hills
|
UNKNOWN
Unknown
|
| Modifier and Type | Method and Description |
|---|---|
static StravaTerrainType |
create(Integer id)
Create the one from the integer id
|
String |
getDescription() |
Integer |
getId() |
Integer |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaTerrainType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaTerrainType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaTerrainType MOSTLY_FLAT
public static final StravaTerrainType ROLLING_HILLS
public static final StravaTerrainType KILLER_CLIMBS
public static final StravaTerrainType UNKNOWN
public static StravaTerrainType[] values()
for (StravaTerrainType c : StravaTerrainType.values()) System.out.println(c);
public static StravaTerrainType 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 StravaTerrainType create(Integer id)
id - IdentifierUNKNOWN if there is no matchpublic 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<StravaTerrainType>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.