Package ai.platon.pulsar.common.measure
Enum BitUnit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBitUnit.Companion
-
Method Summary
Modifier and Type Method Description abstract DoubletoBits(Double d)final DoubletoKibit(Double d)final DoubletoMibit(Double d)final DoubletoGibit(Double d)final DoubletoTibit(Double d)final DoubletoPibit(Double d)final DoubletoKbit(Double d)final DoubletoMbit(Double d)final DoubletoGbit(Double d)final DoubletoTbit(Double d)final DoubletoPbit(Double d)abstract Doubleconvert(Double d, BitUnit u)final Doubleconvert(Double d, ByteUnit u, Integer wordSize)final Doubleconvert(Double d, ByteUnit u)final DoubletoBytes(Double d)final DoubletoBytes(Double d, Integer wordSize)final DoubletoKiB(Double d)final DoubletoKiB(Double d, Integer wordSize)final DoubletoMiB(Double d)final DoubletoMiB(Double d, Integer wordSize)final DoubletoGiB(Double d)final DoubletoGiB(Double d, Integer wordSize)final DoubletoTiB(Double d)final DoubletoTiB(Double d, Integer wordSize)final DoubletoPiB(Double d)final DoubletoPiB(Double d, Integer wordSize)final DoubletoKB(Double d)final DoubletoKB(Double d, Integer wordSize)final DoubletoMB(Double d)final DoubletoMB(Double d, Integer wordSize)final DoubletoGB(Double d)final DoubletoGB(Double d, Integer wordSize)final DoubletoTB(Double d)final DoubletoTB(Double d, Integer wordSize)final DoubletoPB(Double d)final DoubletoPB(Double d, Integer wordSize)final BitUnitvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<BitUnit>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<BitUnit>getEntries()-
-
Method Detail
-
convert
@JvmOverloads() final Double convert(Double d, ByteUnit u)
-
valueOf
final BitUnit 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<BitUnit> 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<BitUnit> getEntries()
-
-
-
-