Package com.dsi.ant.plugins.antplus.pcc
Enum Class AntPlusWeightScalePcc.Gender
java.lang.Object
java.lang.Enum<AntPlusWeightScalePcc.Gender>
com.dsi.ant.plugins.antplus.pcc.AntPlusWeightScalePcc.Gender
- All Implemented Interfaces:
Serializable
,Comparable<AntPlusWeightScalePcc.Gender>
,Constable
- Enclosing class:
- AntPlusWeightScalePcc
Defines codes for the gender of the user of the weight scale
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
User is femalestatic final int
User is malestatic final int
No user profile assigned -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the equivalent integer value of this gender.static AntPlusWeightScalePcc.Gender
getValueFromInt
(int intValue) Converts an integer value to the equivalent gender value.static AntPlusWeightScalePcc.Gender
Returns the enum constant of this class with the specified name.static AntPlusWeightScalePcc.Gender[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FEMALE
Female -
MALE
Male -
UNASSIGNED
Unassigned
-
-
Field Details
-
INTVALUE_FEMALE
public static final int INTVALUE_FEMALEUser is female- See Also:
-
INTVALUE_MALE
public static final int INTVALUE_MALEUser is male- See Also:
-
INTVALUE_UNASSIGNED
public static final int INTVALUE_UNASSIGNEDNo user profile assigned- See Also:
-
-
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 equivalent integer value of this gender.- Returns:
- Equivalent integer value.
-
getValueFromInt
Converts an integer value to the equivalent gender value.- Parameters:
intValue
- Value to convert.- Returns:
- Equivalent gender value.
-