Package ai.platon.pulsar.common.measure
Enum ByteUnit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classByteUnit.Companion
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTE<pre> Byte (B) 1 Byte </pre> KIB<pre> Kibibyte (KiB) 2^10 Byte = 1.024 Byte </pre> MIB<pre> Mebibyte (MiB) 2^20 Byte = 1.024 * 1.024 Byte = 1.048.576 Byte </pre> GIB<pre> Gibibyte (GiB) 2^30 Byte = 1.024 * 1.024 * 1.024 Byte = 1.073.741.824 Byte </pre> TIB<pre> Tebibyte (TiB) 2^40 Byte = 1.024 * 1.024 * 1.024 * 1.024 Byte = 1.099.511.627.776 Byte </pre> PIB<pre> Pebibyte (PiB) 2^50 Byte = 1.024 * 1.024 * 1.024 * 1.024 * 1.024 Byte = 1.125.899.906.842.624 Byte </pre> KB<pre> Kilobyte (kB) 10^3 Byte = 1.000 Byte </pre> MB<pre> Megabyte (MB) 10^6 Byte = 1.000.000 Byte </pre> GB<pre> Gigabyte (GB) 10^9 Byte = 1.000.000.000 Byte </pre> TB<pre> Terabyte (TB) 10^12 Byte = 1.000.000.000.000 Byte </pre> PB<pre> Petabyte (PB) 10^15 Byte = 1.000.000.000.000.000 Byte </pre>
-
Method Summary
-
-
Method Detail
-
convert
@JvmOverloads() final Double convert(Double d, BitUnit u)
-
valueOf
final ByteUnit valueOf(String value)
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.)
-
values
final Array<ByteUnit> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<ByteUnit> getEntries()
-
-
-
-