public enum StravaFrameType extends Enum<StravaFrameType>
Bicycle frame type
| Enum Constant and Description |
|---|
CROSS
Cross bike
|
MOUNTAIN_BIKE
Mountain bike
|
ROAD
Road bike
|
TIME_TRIAL
Time trial bike
|
UNKNOWN
Should never occur but may if Strava API behaviour has changed
|
| Modifier and Type | Method and Description |
|---|---|
static StravaFrameType |
create(Integer id)
Used by JSON deserialisation
|
String |
getDescription() |
Integer |
getId() |
Integer |
getValue()
Used by JSON serialisation
|
String |
toString() |
static StravaFrameType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaFrameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaFrameType MOUNTAIN_BIKE
public static final StravaFrameType CROSS
public static final StravaFrameType ROAD
public static final StravaFrameType TIME_TRIAL
public static final StravaFrameType UNKNOWN
Should never occur but may if Strava API behaviour has changed
public static StravaFrameType[] values()
for (StravaFrameType c : StravaFrameType.values()) System.out.println(c);
public static StravaFrameType 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 Integer getValue()
StravaFrameType to be used with the Strava APIFrameTypeSerializer.serialize(StravaFrameType, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)public static StravaFrameType create(Integer id)
id - The integer representation of a StravaFrameType as returned by the Strava APIStravaFrameType, or UNKNOWN if there is no matchpublic Integer getId()
public String getDescription()
public String toString()
toString in class Enum<StravaFrameType>Enum.toString()Copyright © 2015 Dan Shannon. All rights reserved.