com.garmin.fit
Enum Event
java.lang.Object
java.lang.Enum<Event>
com.garmin.fit.Event
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Event>
public enum Event
- extends java.lang.Enum<Event>
Field Summary |
protected short |
value
|
Method Summary |
static Event |
getByValue(java.lang.Short value)
|
static java.lang.String |
getStringFromValue(Event value)
Retrieves the String Representation of the Value |
short |
getValue()
|
static Event |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
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 |
TIMER
public static final Event TIMER
WORKOUT
public static final Event WORKOUT
WORKOUT_STEP
public static final Event WORKOUT_STEP
POWER_DOWN
public static final Event POWER_DOWN
POWER_UP
public static final Event POWER_UP
OFF_COURSE
public static final Event OFF_COURSE
SESSION
public static final Event SESSION
LAP
public static final Event LAP
COURSE_POINT
public static final Event COURSE_POINT
BATTERY
public static final Event BATTERY
VIRTUAL_PARTNER_PACE
public static final Event VIRTUAL_PARTNER_PACE
HR_HIGH_ALERT
public static final Event HR_HIGH_ALERT
HR_LOW_ALERT
public static final Event HR_LOW_ALERT
SPEED_HIGH_ALERT
public static final Event SPEED_HIGH_ALERT
SPEED_LOW_ALERT
public static final Event SPEED_LOW_ALERT
CAD_HIGH_ALERT
public static final Event CAD_HIGH_ALERT
CAD_LOW_ALERT
public static final Event CAD_LOW_ALERT
POWER_HIGH_ALERT
public static final Event POWER_HIGH_ALERT
POWER_LOW_ALERT
public static final Event POWER_LOW_ALERT
RECOVERY_HR
public static final Event RECOVERY_HR
BATTERY_LOW
public static final Event BATTERY_LOW
TIME_DURATION_ALERT
public static final Event TIME_DURATION_ALERT
DISTANCE_DURATION_ALERT
public static final Event DISTANCE_DURATION_ALERT
CALORIE_DURATION_ALERT
public static final Event CALORIE_DURATION_ALERT
ACTIVITY
public static final Event ACTIVITY
FITNESS_EQUIPMENT
public static final Event FITNESS_EQUIPMENT
LENGTH
public static final Event LENGTH
USER_MARKER
public static final Event USER_MARKER
SPORT_POINT
public static final Event SPORT_POINT
CALIBRATION
public static final Event CALIBRATION
FRONT_GEAR_CHANGE
public static final Event FRONT_GEAR_CHANGE
REAR_GEAR_CHANGE
public static final Event REAR_GEAR_CHANGE
RIDER_POSITION_CHANGE
public static final Event RIDER_POSITION_CHANGE
ELEV_HIGH_ALERT
public static final Event ELEV_HIGH_ALERT
ELEV_LOW_ALERT
public static final Event ELEV_LOW_ALERT
COMM_TIMEOUT
public static final Event COMM_TIMEOUT
INVALID
public static final Event INVALID
value
protected short value
values
public static Event[] 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 (Event c : Event.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Event 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 Event getByValue(java.lang.Short value)
getStringFromValue
public static java.lang.String getStringFromValue(Event value)
- Retrieves the String Representation of the Value
- Returns:
- The string representation of the value
getValue
public short getValue()