Enum Class AntPlusFitnessEquipmentPcc.TrainerStatusFlag

java.lang.Object
java.lang.Enum<AntPlusFitnessEquipmentPcc.TrainerStatusFlag>
com.dsi.ant.plugins.antplus.pcc.AntPlusFitnessEquipmentPcc.TrainerStatusFlag
All Implemented Interfaces:
Serializable, Comparable<AntPlusFitnessEquipmentPcc.TrainerStatusFlag>, Constable
Enclosing class:
AntPlusFitnessEquipmentPcc

public static enum AntPlusFitnessEquipmentPcc.TrainerStatusFlag extends Enum<AntPlusFitnessEquipmentPcc.TrainerStatusFlag>
Status flag from trainers which indicate possible required user intervention.
Since:
2.1.8
  • Enum Constant Details

  • 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 name
      NullPointerException - if the argument is null
    • getLongValue

      public long getLongValue()
      Convert enum to equivalent long value.
      Returns:
      long value equivalent
    • getEnumSet

      public static EnumSet<AntPlusFitnessEquipmentPcc.TrainerStatusFlag> getEnumSet(long longValue)
      Gets the set of flags contained in the given value
      Parameters:
      longValue - raw long value containing flags
      Returns:
      set of flags contained in the given value
    • getLong

      public static long getLong(EnumSet<AntPlusFitnessEquipmentPcc.TrainerStatusFlag> trainerStatusFlags)
      Converts a set of flags to the equivalent raw long value
      Parameters:
      trainerStatusFlags - set of flags to convert
      Returns:
      equivalent raw long value