toggle menu
kotlin-client
JVM
switch theme
search in API
kotlin-client
/
com.couchbase.client.kotlin.util
/
StorageSize
Storage
Size
class
StorageSize
(
val
value
:
Long
,
val
unit
:
StorageSizeUnit
)
:
Comparable
<
StorageSize
>
A size measured in bytes, kibibytes, mebibytes, etc.
Example:
val quota: StorageSize = 256.mebibytes
Content copied to clipboard
Members
Constructors
Storage
Size
Link copied to clipboard
constructor
(
value
:
Long
,
unit
:
StorageSizeUnit
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
in
Bytes
Link copied to clipboard
val
inBytes
:
Long
unit
Link copied to clipboard
val
unit
:
StorageSizeUnit
value
Link copied to clipboard
val
value
:
Long
Functions
compare
To
Link copied to clipboard
open
operator override
fun
compareTo
(
other
:
StorageSize
)
:
Int
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String