public enum ActivityType extends java.lang.Enum<ActivityType>
Enum Constant and Description |
---|
ALL |
CYCLING |
FITNESS_EQUIPMENT |
GENERIC |
INVALID |
RUNNING |
SEDENTARY |
SWIMMING |
TRANSITION |
WALKING |
Modifier and Type | Field and Description |
---|---|
protected short |
value |
Modifier and Type | Method and Description |
---|---|
static ActivityType |
getByValue(java.lang.Short value) |
static java.lang.String |
getStringFromValue(ActivityType value)
Retrieves the String Representation of the Value
|
short |
getValue() |
static ActivityType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ActivityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActivityType GENERIC
public static final ActivityType RUNNING
public static final ActivityType CYCLING
public static final ActivityType TRANSITION
public static final ActivityType FITNESS_EQUIPMENT
public static final ActivityType SWIMMING
public static final ActivityType WALKING
public static final ActivityType SEDENTARY
public static final ActivityType ALL
public static final ActivityType INVALID
public static ActivityType[] values()
for (ActivityType c : ActivityType.values()) System.out.println(c);
public static ActivityType 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 ActivityType getByValue(java.lang.Short value)
public static java.lang.String getStringFromValue(ActivityType value)
value
- The enum constantpublic short getValue()