com.garmin.fit
Enum ActivitySubtype
java.lang.Object
java.lang.Enum<ActivitySubtype>
com.garmin.fit.ActivitySubtype
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ActivitySubtype>
public enum ActivitySubtype
- extends java.lang.Enum<ActivitySubtype>
Field Summary |
protected short |
value
|
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
GENERIC
public static final ActivitySubtype GENERIC
TREADMILL
public static final ActivitySubtype TREADMILL
STREET
public static final ActivitySubtype STREET
TRAIL
public static final ActivitySubtype TRAIL
TRACK
public static final ActivitySubtype TRACK
SPIN
public static final ActivitySubtype SPIN
INDOOR_CYCLING
public static final ActivitySubtype INDOOR_CYCLING
ROAD
public static final ActivitySubtype ROAD
MOUNTAIN
public static final ActivitySubtype MOUNTAIN
DOWNHILL
public static final ActivitySubtype DOWNHILL
RECUMBENT
public static final ActivitySubtype RECUMBENT
CYCLOCROSS
public static final ActivitySubtype CYCLOCROSS
HAND_CYCLING
public static final ActivitySubtype HAND_CYCLING
TRACK_CYCLING
public static final ActivitySubtype TRACK_CYCLING
INDOOR_ROWING
public static final ActivitySubtype INDOOR_ROWING
ELLIPTICAL
public static final ActivitySubtype ELLIPTICAL
STAIR_CLIMBING
public static final ActivitySubtype STAIR_CLIMBING
LAP_SWIMMING
public static final ActivitySubtype LAP_SWIMMING
OPEN_WATER
public static final ActivitySubtype OPEN_WATER
ALL
public static final ActivitySubtype ALL
INVALID
public static final ActivitySubtype INVALID
value
protected short value
values
public static ActivitySubtype[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ActivitySubtype c : ActivitySubtype.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ActivitySubtype valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getByValue
public static ActivitySubtype getByValue(java.lang.Short value)
getStringFromValue
public static java.lang.String getStringFromValue(ActivitySubtype value)
- Retrieves the String Representation of the Value
- Returns:
- The string representation of the value
getValue
public short getValue()