com.garmin.fit
Class BatteryStatus

java.lang.Object
  extended by com.garmin.fit.BatteryStatus

public class BatteryStatus
extends java.lang.Object


Field Summary
static short CHARGING
           
static short CRITICAL
           
static short GOOD
           
static short INVALID
           
static short LOW
           
static short NEW
           
static short OK
           
static short UNKNOWN
           
 
Constructor Summary
BatteryStatus()
           
 
Method Summary
static java.lang.String getStringFromValue(java.lang.Short value)
          Retrieves the String Representation of the Value
static java.lang.Short getValueFromString(java.lang.String value)
          Retrieves a value given a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEW

public static final short NEW
See Also:
Constant Field Values

GOOD

public static final short GOOD
See Also:
Constant Field Values

OK

public static final short OK
See Also:
Constant Field Values

LOW

public static final short LOW
See Also:
Constant Field Values

CRITICAL

public static final short CRITICAL
See Also:
Constant Field Values

CHARGING

public static final short CHARGING
See Also:
Constant Field Values

UNKNOWN

public static final short UNKNOWN
See Also:
Constant Field Values

INVALID

public static final short INVALID
Constructor Detail

BatteryStatus

public BatteryStatus()
Method Detail

getStringFromValue

public static java.lang.String getStringFromValue(java.lang.Short value)
Retrieves the String Representation of the Value

Returns:
The string representation of the value, or empty if unknown

getValueFromString

public static java.lang.Short getValueFromString(java.lang.String value)
Retrieves a value given a string representation

Returns:
The value or INVALID if unkwown