Enum MemoryUnit

java.lang.Object
java.lang.Enum<MemoryUnit>
org.infinispan.commons.util.MemoryUnit
All Implemented Interfaces:
Serializable, Comparable<MemoryUnit>

@Deprecated(forRemoval=true) public enum MemoryUnit extends Enum<MemoryUnit>
Deprecated, for removal: This API element is subject to removal in a future version.
since 11.0, use ByteQuantity instead.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    convert(long sourceSize, MemoryUnit sourceUnit)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toGibiBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toGigaBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toKibiBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toKiloBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toMebiBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toMegaBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toTebiBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    toTeraBytes(long size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static MemoryUnit
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the enum constant of this type with the specified name.
    static MemoryUnit[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BYTES

      public static final MemoryUnit BYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
    • KILOBYTES

      public static final MemoryUnit KILOBYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
    • KIBIBYTES

      public static final MemoryUnit KIBIBYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
    • MEGABYTES

      public static final MemoryUnit MEGABYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
    • MEBIBYTES

      public static final MemoryUnit MEBIBYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
    • GIGABYTES

      public static final MemoryUnit GIGABYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
    • GIBIBYTES

      public static final MemoryUnit GIBIBYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TERABYTES

      public static final MemoryUnit TERABYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TEBIBYTES

      public static final MemoryUnit TEBIBYTES
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • values

      public static MemoryUnit[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 MemoryUnit valueOf(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
    • getSuffix

      public String getSuffix()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • convert

      public long convert(long sourceSize, MemoryUnit sourceUnit)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toBytes

      public long toBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toKiloBytes

      public long toKiloBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toKibiBytes

      public long toKibiBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toMegaBytes

      public long toMegaBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toMebiBytes

      public long toMebiBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toGigaBytes

      public long toGigaBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toGibiBytes

      public long toGibiBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toTeraBytes

      public long toTeraBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toTebiBytes

      public long toTebiBytes(long size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • parseBytes

      public static long parseBytes(String s)
      Deprecated, for removal: This API element is subject to removal in a future version.