Package org.infinispan.commons.util
Enum MemoryUnit
- All Implemented Interfaces:
Serializable
,Comparable<MemoryUnit>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated, 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 TypeMethodDescriptionlong
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
parseBytes
(String s) 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[]
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.
-
Enum Constant Details
-
BYTES
Deprecated, for removal: This API element is subject to removal in a future version. -
KILOBYTES
Deprecated, for removal: This API element is subject to removal in a future version. -
KIBIBYTES
Deprecated, for removal: This API element is subject to removal in a future version. -
MEGABYTES
Deprecated, for removal: This API element is subject to removal in a future version. -
MEBIBYTES
Deprecated, for removal: This API element is subject to removal in a future version. -
GIGABYTES
Deprecated, for removal: This API element is subject to removal in a future version. -
GIBIBYTES
Deprecated, for removal: This API element is subject to removal in a future version. -
TERABYTES
Deprecated, for removal: This API element is subject to removal in a future version. -
TEBIBYTES
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getSuffix
Deprecated, for removal: This API element is subject to removal in a future version. -
convert
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
Deprecated, for removal: This API element is subject to removal in a future version.
-
ByteQuantity
instead.