public enum StravaSubscriptionObjectType extends Enum<StravaSubscriptionObjectType> implements StravaReferenceType<Integer>
| Enum Constant and Description |
|---|
ACTIVITY
Activities
|
UNKNOWN
Unknown - shouldn't happen but may if the API implementation changes
|
| Modifier and Type | Method and Description |
|---|---|
static StravaSubscriptionObjectType |
create(Integer id) |
String |
getDescription() |
Integer |
getId() |
Integer |
getValue() |
String |
toString() |
static StravaSubscriptionObjectType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StravaSubscriptionObjectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StravaSubscriptionObjectType ACTIVITY
public static final StravaSubscriptionObjectType UNKNOWN
public static StravaSubscriptionObjectType[] values()
for (StravaSubscriptionObjectType c : StravaSubscriptionObjectType.values()) System.out.println(c);
public static StravaSubscriptionObjectType 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 StravaSubscriptionObjectType create(Integer id)
id - the idUNKNOWN 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<StravaSubscriptionObjectType>Enum.toString()Copyright © 2016 Dan Shannon. All rights reserved.