Enum Class Size.UnitKind

java.lang.Object
java.lang.Enum<Size.UnitKind>
io.helidon.common.Size.UnitKind
All Implemented Interfaces:
Serializable, Comparable<Size.UnitKind>, Constable
Enclosing interface:
Size

public static enum Size.UnitKind extends Enum<Size.UnitKind>
Kind of units, used for printing out the correct unit.
  • Enum Constant Details

    • DECIMAL_UPPER_CASE

      public static final Size.UnitKind DECIMAL_UPPER_CASE
      The first letter (if two lettered) is lower case, the second is upper case, such ase B, kB, mB. These represent powers of 1000.
    • DECIMAL_LOWER_CASE

      public static final Size.UnitKind DECIMAL_LOWER_CASE
      All letters are lower case, such as b, kb, mb. These represent powers of 1000.
    • BINARY_BI

      public static final Size.UnitKind BINARY_BI
      The multiplier always contains i, the second is upper case B, such ase B, KiB, MiB. These represent powers of 1024.
    • BINARY_UPPER_CASE

      public static final Size.UnitKind BINARY_UPPER_CASE
      All letters are upper case, such as B, KB, MB. These represent powers of 1024.
  • Method Details

    • values

      public static Size.UnitKind[] 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 Size.UnitKind 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