Enum Class SensorUnit

java.lang.Object
java.lang.Enum<SensorUnit>
com.eqixiac.equinix.ibxsmartview.enums.SensorUnit
All Implemented Interfaces:
APIParam, Serializable, Comparable<SensorUnit>, Constable

public enum SensorUnit extends Enum<SensorUnit> implements APIParam
Unit of measure for a sensor reading. The spec models ValueWithUnit.unit as a free-form string; documented values are CELSIUS/FAHRENHEIT (temperature) and PERCENT (humidity). Any unrecognized unit maps to UNKNOWN rather than null, so an unexpected unit is preserved/visible rather than silently dropped.
  • Enum Constant Details

    • CELSIUS

      public static final SensorUnit CELSIUS
    • FAHRENHEIT

      public static final SensorUnit FAHRENHEIT
    • PERCENT

      public static final SensorUnit PERCENT
    • UNKNOWN

      public static final SensorUnit UNKNOWN
  • Method Details

    • values

      public static SensorUnit[] 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 SensorUnit 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
    • fromString

      public static SensorUnit fromString(String value)