Enum Constant and Description |
---|
ACTIVE_MINUTES |
ASCENT |
CALORIES |
DISTANCE |
FREQUENCY |
INVALID |
STEPS |
TIME |
Modifier and Type | Field and Description |
---|---|
protected short |
value |
Modifier and Type | Method and Description |
---|---|
static Goal |
getByValue(java.lang.Short value) |
static java.lang.String |
getStringFromValue(Goal value)
Retrieves the String Representation of the Value
|
short |
getValue() |
static Goal |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Goal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Goal TIME
public static final Goal DISTANCE
public static final Goal CALORIES
public static final Goal FREQUENCY
public static final Goal STEPS
public static final Goal ASCENT
public static final Goal ACTIVE_MINUTES
public static final Goal INVALID
public static Goal[] values()
for (Goal c : Goal.values()) System.out.println(c);
public static Goal 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 Goal getByValue(java.lang.Short value)
public static java.lang.String getStringFromValue(Goal value)
value
- The enum constantpublic short getValue()