Package org.infinispan.commons.util
Enum MemoryUnit
- All Implemented Interfaces:
Serializable
,Comparable<MemoryUnit>
Deprecated.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionlong
convert
(long sourceSize, MemoryUnit sourceUnit) Deprecated.Deprecated.static long
parseBytes
(String s) Deprecated.long
toBytes
(long size) Deprecated.long
toGibiBytes
(long size) Deprecated.long
toGigaBytes
(long size) Deprecated.long
toKibiBytes
(long size) Deprecated.long
toKiloBytes
(long size) Deprecated.long
toMebiBytes
(long size) Deprecated.long
toMegaBytes
(long size) Deprecated.long
toTebiBytes
(long size) Deprecated.long
toTeraBytes
(long size) Deprecated.static MemoryUnit
Deprecated.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.
-
ByteQuantity
instead.