Enum Class Unit

All Implemented Interfaces:
Serializable, Comparable<Unit>, Constable

public enum Unit extends Enum<Unit>
  • Enum Constant Details

    • WH

      public static final Unit WH
      Watt-hours (energy). Default.
    • KWH

      public static final Unit KWH
      kiloWatt-hours (energy).
    • VARH

      public static final Unit VARH
      Var-hours (reactive energy).
    • KVARH

      public static final Unit KVARH
      kilovar-hours (reactive energy).
    • W

      public static final Unit W
      Watts (power).
    • KW

      public static final Unit KW
      kilowatts (power).
    • VA

      public static final Unit VA
      VoltAmpere (apparent power).
    • KVA

      public static final Unit KVA
      kiloVolt Ampere (apparent power).
    • VAR

      public static final Unit VAR
      Vars (reactive power).
    • KVAR

      public static final Unit KVAR
      kilovars (reactive power).
    • A

      public static final Unit A
      Amperes (current).
    • V

      public static final Unit V
      Voltage (r.m.s. AC).

      public static final Unit CELSIUS
      Degrees (temperature).

      public static final Unit FAHRENHEIT
      Fahrenheit Degrees (temperature).
    • K

      public static final Unit K
      Kelvin (temperature).

      public static final Unit PERCENT
  • Method Details

    • values

      public static Unit[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Unit 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null