Enum Class FitFileCommon.FitFileDataType
java.lang.Object
java.lang.Enum<FitFileCommon.FitFileDataType>
com.dsi.ant.plugins.antplus.common.FitFileCommon.FitFileDataType
- All Implemented Interfaces:
Serializable
,Comparable<FitFileCommon.FitFileDataType>
,Constable
- Enclosing class:
- FitFileCommon
Defines for FIT file data types
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlood pressure fileFit Data Type FlagInvalid flagThe value sent by the plugin service was unrecognized probably indicating an upgrade of the PCC is required to handle the value. -
Method Summary
Modifier and TypeMethodDescriptionint
Get value of flaggetValueFromInt
(int intValue) Convert int to enum.Returns the enum constant of this class with the specified name.static FitFileCommon.FitFileDataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIT_DATA_TYPE
Fit Data Type Flag -
BLOOD_PRESSURE
Blood pressure file -
INVALID
Invalid flag -
UNRECOGNIZED
The value sent by the plugin service was unrecognized probably indicating an upgrade of the PCC is 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()Get value of flag- Returns:
- value of flag as integer
-
getValueFromInt
Convert int to enum. Note: This function is used primarily for IPC, it does not decode flags but directly maps the given integer value to the defined values.- Parameters:
intValue
- the int value to convert- Returns:
- returns the enum exactly matching this int value
-