Enum Class DeviceType
- All Implemented Interfaces:
Serializable
,Comparable<DeviceType>
,Constable
Enum representing the various ANT+ Device Types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBike Cadence SensorBike PowerBike Speed SensorBike Speed and Cadence Combined SensorBlood PressureControllable Device - Controls ProfileEnvironment (TEMPE)Fitness EquipmentGeocacheHeart RateStride Based Speed and Distance MonitorThe value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.Weight Scale -
Method Summary
Modifier and TypeMethodDescriptionint
static DeviceType
getValueFromInt
(int intValue) toString()
static DeviceType
Returns the enum constant of this class with the specified name.static DeviceType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BIKE_POWER
Bike Power -
CONTROLLABLE_DEVICE
Controllable Device - Controls Profile -
FITNESS_EQUIPMENT
Fitness Equipment -
BLOOD_PRESSURE
Blood Pressure -
GEOCACHE
Geocache -
ENVIRONMENT
Environment (TEMPE) -
WEIGHT_SCALE
Weight Scale -
HEARTRATE
Heart Rate -
BIKE_SPDCAD
Bike Speed and Cadence Combined Sensor -
BIKE_CADENCE
Bike Cadence Sensor -
BIKE_SPD
Bike Speed Sensor -
STRIDE_SDM
Stride Based Speed and Distance Monitor -
UNKNOWN
The value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIntValue
public int getIntValue()- Returns:
- The integer device type value as defined by the corresponding ANT+ profile.
-
getValueFromInt
- Parameters:
intValue
- An ANT device type value.- Returns:
- The corresponding ANT+ device type, or
UNKNOWN
if the type is not recognized.
-
toString
- Overrides:
toString
in classEnum<DeviceType>
-