Package com.dsi.ant.plugins.antplus.pcc
Enum Class AntPlusBikePowerPcc.CrankLengthSetting
java.lang.Object
java.lang.Enum<AntPlusBikePowerPcc.CrankLengthSetting>
com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.CrankLengthSetting
- All Implemented Interfaces:
Serializable
,Comparable<AntPlusBikePowerPcc.CrankLengthSetting>
,Constable
- Enclosing class:
- AntPlusBikePowerPcc
public static enum AntPlusBikePowerPcc.CrankLengthSetting
extends Enum<AntPlusBikePowerPcc.CrankLengthSetting>
The crank length setting.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSet the power meter to automatically determine crank length.Set the crank length to invalid.Set the power meter crank length manually. -
Method Summary
Modifier and TypeMethodDescriptionint
Convert enum to equivalent int valuegetValueFromInt
(int intValue) Returns the crank length setting from the int code.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO_CRANK_LENGTH
Set the power meter to automatically determine crank length. -
MANUAL_CRANK_LENGTH
Set the power meter crank length manually. -
INVALID
Set the crank length to invalid.
-
-
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()Convert enum to equivalent int value- Returns:
- integer value equivalent
-
getValueFromInt
Returns the crank length setting from the int code. Any invalid code will default to INVALID.- Parameters:
intValue
- The int value code.- Returns:
- The crank length setting related to the code.
-