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

public static enum FitFileCommon.FitFileDataType extends Enum<FitFileCommon.FitFileDataType>
Defines for FIT file data types
  • Enum Constant Details

  • Method Details

    • values

      public static FitFileCommon.FitFileDataType[] 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 FitFileCommon.FitFileDataType 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()
      Get value of flag
      Returns:
      value of flag as integer
    • getValueFromInt

      public static FitFileCommon.FitFileDataType getValueFromInt(int intValue)
      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