Enum Class FrequencyUnit

java.lang.Object
java.lang.Enum<FrequencyUnit>
com.irurueta.units.FrequencyUnit
All Implemented Interfaces:
Serializable, Comparable<FrequencyUnit>, Constable

public enum FrequencyUnit extends Enum<FrequencyUnit>
Enumerator containing recognized typical frequency units.
  • Enum Constant Details

    • HERTZ

      public static final FrequencyUnit HERTZ
      Hertz (Hz).
    • KILOHERTZ

      public static final FrequencyUnit KILOHERTZ
      KiloHertz (KHz).
    • MEGAHERTZ

      public static final FrequencyUnit MEGAHERTZ
      MegaHertz (MHz).
    • GIGAHERTZ

      public static final FrequencyUnit GIGAHERTZ
      GigaHertz (GHz).
    • TERAHERTZ

      public static final FrequencyUnit TERAHERTZ
      TeraHertz (THz).
  • Constructor Details

    • FrequencyUnit

      private FrequencyUnit()
  • Method Details

    • values

      public static FrequencyUnit[] 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 FrequencyUnit 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