kobweb
Toggle table of contents
0.21.1
jvm
Platform filter
jvm
Switch theme
Search in API
kobweb
kobweb-common
/
com.varabyte.kobweb.common.data
/
DataSize
Data
Size
@
Serializable
(
with
=
DataSizeSerializer::class
)
sealed
class
DataSize
(
source
)
Inheritors
Bytes
Kilobytes
Kibibytes
Megabytes
Mebibytes
Gigabytes
Gibibytes
Members
Types
Bytes
Link copied to clipboard
@
Serializable
(
with
=
DataSizeSerializer::class
)
class
Bytes
(
val
amount
:
Long
)
:
DataSize
Companion
Link copied to clipboard
object
Companion
Gibibytes
Link copied to clipboard
@
Serializable
(
with
=
DataSizeSerializer::class
)
class
Gibibytes
(
val
amount
:
Long
)
:
DataSize
Gigabytes
Link copied to clipboard
@
Serializable
(
with
=
DataSizeSerializer::class
)
class
Gigabytes
(
val
amount
:
Long
)
:
DataSize
Kibibytes
Link copied to clipboard
@
Serializable
(
with
=
DataSizeSerializer::class
)
class
Kibibytes
(
val
amount
:
Long
)
:
DataSize
Kilobytes
Link copied to clipboard
@
Serializable
(
with
=
DataSizeSerializer::class
)
class
Kilobytes
(
val
amount
:
Long
)
:
DataSize
Mebibytes
Link copied to clipboard
@
Serializable
(
with
=
DataSizeSerializer::class
)
class
Mebibytes
(
val
amount
:
Long
)
:
DataSize
Megabytes
Link copied to clipboard
@
Serializable
(
with
=
DataSizeSerializer::class
)
class
Megabytes
(
val
amount
:
Long
)
:
DataSize
Properties
amount
Link copied to clipboard
val
amount
:
Long
in
Whole
Bytes
Link copied to clipboard
val
inWholeBytes
:
Long
in
Whole
Gibibytes
Link copied to clipboard
val
inWholeGibibytes
:
Long
in
Whole
Gigabytes
Link copied to clipboard
val
inWholeGigabytes
:
Long
in
Whole
Kibibytes
Link copied to clipboard
val
inWholeKibibytes
:
Long
in
Whole
Kilobytes
Link copied to clipboard
val
inWholeKilobytes
:
Long
in
Whole
Mebibytes
Link copied to clipboard
val
inWholeMebibytes
:
Long
in
Whole
Megabytes
Link copied to clipboard
val
inWholeMegabytes
:
Long
Functions
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int