public enum SportEvent extends java.lang.Enum<SportEvent>
Enum Constant and Description |
---|
FITNESS |
GEOCACHING |
INVALID |
RACE |
RECREATION |
SPECIAL_EVENT |
TOURING |
TRAINING |
TRANSPORTATION |
UNCATEGORIZED |
Modifier and Type | Field and Description |
---|---|
protected short |
value |
Modifier and Type | Method and Description |
---|---|
static SportEvent |
getByValue(java.lang.Short value) |
static java.lang.String |
getStringFromValue(SportEvent value)
Retrieves the String Representation of the Value
|
short |
getValue() |
static SportEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SportEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SportEvent UNCATEGORIZED
public static final SportEvent GEOCACHING
public static final SportEvent FITNESS
public static final SportEvent RECREATION
public static final SportEvent RACE
public static final SportEvent SPECIAL_EVENT
public static final SportEvent TRAINING
public static final SportEvent TRANSPORTATION
public static final SportEvent TOURING
public static final SportEvent INVALID
public static SportEvent[] values()
for (SportEvent c : SportEvent.values()) System.out.println(c);
public static SportEvent valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SportEvent getByValue(java.lang.Short value)
public static java.lang.String getStringFromValue(SportEvent value)
value
- The enum constantpublic short getValue()