Enum MeasureUnit.Complexity

java.lang.Object
java.lang.Enum<MeasureUnit.Complexity>
com.ibm.icu.util.MeasureUnit.Complexity
All Implemented Interfaces:
Serializable, Comparable<MeasureUnit.Complexity>, java.lang.constant.Constable
Enclosing class:
MeasureUnit

public static enum MeasureUnit.Complexity extends Enum<MeasureUnit.Complexity>
Enumeration for unit complexity. There are three levels:
  • SINGLE: A single unit, optionally with a power and/or SI or binary prefix. Examples: hectare, square-kilometer, kilojoule, per-second, mebibyte.
  • COMPOUND: A unit composed of the product of multiple single units. Examples: meter-per-second, kilowatt-hour, kilogram-meter-per-square-second.
  • MIXED: A unit composed of the sum of multiple single units. Examples: foot-and-inch, hour-and-minute-and-second, degree-and-arcminute-and-arcsecond.
The complexity determines which operations are available. For example, you cannot set the power or prefix of a compound unit.
  • Enum Constant Details

  • Method Details

    • values

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

      public static MeasureUnit.Complexity valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null