Enum Class ByteData.Unit

java.lang.Object
java.lang.Enum<ByteData.Unit>
com.marcpg.libpg.data.storage.ByteData.Unit
All Implemented Interfaces:
Serializable, Comparable<ByteData.Unit>, Constable
Enclosing class:
ByteData

public static enum ByteData.Unit extends Enum<ByteData.Unit>
A data unit in the Byte Format, such as megabytes or gigabytes
Since:
0.0.1
  • Enum Constant Details

    • BYTE

      public static final ByteData.Unit BYTE
      One byte - 8 bit
    • KILOBYTE

      public static final ByteData.Unit KILOBYTE
      One kilobyte - 1000 byte
    • MEGABYTE

      public static final ByteData.Unit MEGABYTE
      One megabyte - 1000 kilobyte
    • GIGABYTE

      public static final ByteData.Unit GIGABYTE
      One gigabyte - 1000 megabyte
    • TERABYTE

      public static final ByteData.Unit TERABYTE
      One terabyte - 1000 gigabyte
    • PETABYTE

      public static final ByteData.Unit PETABYTE
      One petabyte - 1000 terabyte
    • EXABYTE

      public static final ByteData.Unit EXABYTE
      One exabyte - 1000 petabyte
    • KIBIBYTE

      public static final ByteData.Unit KIBIBYTE
      One kibibyte - 1024 byte
    • MEBIBYTE

      public static final ByteData.Unit MEBIBYTE
      One mebibyte - 1024 kibibyte
    • GIBIBYTE

      public static final ByteData.Unit GIBIBYTE
      One gibibyte - 1024 mebibyte
    • TEBIBYTE

      public static final ByteData.Unit TEBIBYTE
      One tebibyte - 1024 gibibyte
    • PEBIBYTE

      public static final ByteData.Unit PEBIBYTE
      One pebibyte - 1024 tebibyte
    • EXBIBYTE

      public static final ByteData.Unit EXBIBYTE
      One exbibyte - 1024 pebibyte
  • Field Details

  • Method Details

    • values

      public static ByteData.Unit[] 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 ByteData.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.)
      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
    • eng

      @NotNull public @NotNull String eng()
      The full english name of the unit as listed in the english dictionary.
      Same as pluralEng().
      Returns:
      The english name.
    • pluralEng

      @NotNull public @NotNull String pluralEng()
      Same as eng(), but with an "s" at the end.
      Returns:
      The english name in plural.
    • toString

      @NotNull public @NotNull String toString()
      Just the same as eng() and pluralEng().
      Overrides:
      toString in class Enum<ByteData.Unit>