Package org.infinispan.commons.util
Enum MemoryUnit
- All Implemented Interfaces:
Serializable,Comparable<MemoryUnit>
Deprecated.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionlongconvert(long sourceSize, MemoryUnit sourceUnit) Deprecated.Deprecated.static longparseBytes(String s) Deprecated.longtoBytes(long size) Deprecated.longtoGibiBytes(long size) Deprecated.longtoGigaBytes(long size) Deprecated.longtoKibiBytes(long size) Deprecated.longtoKiloBytes(long size) Deprecated.longtoMebiBytes(long size) Deprecated.longtoMegaBytes(long size) Deprecated.longtoTebiBytes(long size) Deprecated.longtoTeraBytes(long size) Deprecated.static MemoryUnitDeprecated.Returns the enum constant of this type with the specified name.static MemoryUnit[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BYTES
Deprecated. -
KILOBYTES
Deprecated. -
KIBIBYTES
Deprecated. -
MEGABYTES
Deprecated. -
MEBIBYTES
Deprecated. -
GIGABYTES
Deprecated. -
GIBIBYTES
Deprecated. -
TERABYTES
Deprecated. -
TEBIBYTES
Deprecated.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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 nameNullPointerException- if the argument is null
-
getSuffix
Deprecated. -
convert
Deprecated. -
toBytes
public long toBytes(long size) Deprecated. -
toKiloBytes
public long toKiloBytes(long size) Deprecated. -
toKibiBytes
public long toKibiBytes(long size) Deprecated. -
toMegaBytes
public long toMegaBytes(long size) Deprecated. -
toMebiBytes
public long toMebiBytes(long size) Deprecated. -
toGigaBytes
public long toGigaBytes(long size) Deprecated. -
toGibiBytes
public long toGibiBytes(long size) Deprecated. -
toTeraBytes
public long toTeraBytes(long size) Deprecated. -
toTebiBytes
public long toTebiBytes(long size) Deprecated. -
parseBytes
Deprecated.
-
ByteQuantityinstead.