toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.korge.service.storage
/
InmemoryStorage
Inmemory
Storage
open
class
InmemoryStorage
:
IStorageWithKeys
Members
Members & Extensions
Constructors
Inmemory
Storage
Link copied to clipboard
constructor
(
)
Properties
data
Link copied to clipboard
val
data
:
LinkedHashMap
<
String
,
String
>
Functions
contains
Link copied to clipboard
operator
fun
IStorage
.
contains
(
key
:
String
)
:
Boolean
get
Link copied to clipboard
operator
fun
IStorage
.
get
(
key
:
String
)
:
String
get
Or
Null
Link copied to clipboard
open
override
fun
getOrNull
(
key
:
String
)
:
String
?
item
Link copied to clipboard
fun
<
T
>
IStorage
.
item
(
key
:
String
,
serialize
:
(
T
)
->
String
,
deserialize
:
(
String
?
)
->
T
)
:
StorageKey
<
T
>
item
Bool
Link copied to clipboard
fun
IStorage
.
itemBool
(
key
:
String
,
default
:
Boolean
=
false
)
:
StorageKey
<
Boolean
>
item
Double
Link copied to clipboard
fun
IStorage
.
itemDouble
(
key
:
String
,
default
:
Double
=
0.0
)
:
StorageKey
<
Double
>
item
Int
Link copied to clipboard
fun
IStorage
.
itemInt
(
key
:
String
,
default
:
Int
=
0
)
:
StorageKey
<
Int
>
item
String
Link copied to clipboard
fun
IStorage
.
itemString
(
key
:
String
,
default
:
String
=
""
)
:
StorageKey
<
String
>
keys
Link copied to clipboard
open
override
fun
keys
(
)
:
List
<
String
>
remove
Link copied to clipboard
open
override
fun
remove
(
key
:
String
)
remove
All
Link copied to clipboard
open
override
fun
removeAll
(
)
set
Link copied to clipboard
open
operator override
fun
set
(
key
:
String
,
value
:
String
)
to
Map
Link copied to clipboard
open
fun
toMap
(
)
:
Map
<
String
,
String
?
>