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

public static enum AntPlusWeightScalePcc.Gender extends Enum<AntPlusWeightScalePcc.Gender>
Defines codes for the gender of the user of the weight scale
  • Enum Constant Details

  • Field Details

    • INTVALUE_FEMALE

      public static final int INTVALUE_FEMALE
      User is female
      See Also:
    • INTVALUE_MALE

      public static final int INTVALUE_MALE
      User is male
      See Also:
    • INTVALUE_UNASSIGNED

      public static final int INTVALUE_UNASSIGNED
      No user profile assigned
      See Also:
  • Method Details

    • values

      public static AntPlusWeightScalePcc.Gender[] 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

      public static AntPlusWeightScalePcc.Gender valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getIntValue

      public int getIntValue()
      Returns the equivalent integer value of this gender.
      Returns:
      Equivalent integer value.
    • getValueFromInt

      public static AntPlusWeightScalePcc.Gender getValueFromInt(int intValue)
      Converts an integer value to the equivalent gender value.
      Parameters:
      intValue - Value to convert.
      Returns:
      Equivalent gender value.