toggle menu
Spezi Documentation
androidJvm
switch theme
search in API
storage
/
edu.stanford.spezi.modules.storage.key
/
InMemoryKeyValueStorage
In
Memory
Key
Value
Storage
class
InMemoryKeyValueStorage
@
Inject
constructor
:
KeyValueStorage
Members
Members & Extensions
Constructors
In
Memory
Key
Value
Storage
Link copied to clipboard
@
Inject
constructor
(
)
Functions
all
Keys
Link copied to clipboard
open
override
fun
allKeys
(
)
:
Set
<
String
>
clear
Link copied to clipboard
open
override
fun
clear
(
)
delete
Link copied to clipboard
open
override
fun
delete
(
key
:
String
)
get
Boolean
Link copied to clipboard
open
override
fun
getBoolean
(
key
:
String
,
default
:
Boolean
)
:
Boolean
get
Byte
Array
Link copied to clipboard
open
override
fun
getByteArray
(
key
:
String
)
:
ByteArray
?
open
override
fun
getByteArray
(
key
:
String
,
default
:
ByteArray
)
:
ByteArray
get
Float
Link copied to clipboard
open
override
fun
getFloat
(
key
:
String
,
default
:
Float
)
:
Float
get
Int
Link copied to clipboard
open
override
fun
getInt
(
key
:
String
,
default
:
Int
)
:
Int
get
Long
Link copied to clipboard
open
override
fun
getLong
(
key
:
String
,
default
:
Long
)
:
Long
get
Serializable
Link copied to clipboard
inline
fun
<
T
:
Any
>
KeyValueStorage
.
getSerializable
(
key
:
String
)
:
T
?
inline
fun
<
T
:
Any
>
KeyValueStorage
.
getSerializable
(
key
:
String
,
default
:
T
)
:
T
get
Serializable
List
Link copied to clipboard
inline
fun
<
T
:
Any
>
KeyValueStorage
.
getSerializableList
(
key
:
String
)
:
List
<
T
>
get
String
Link copied to clipboard
open
override
fun
getString
(
key
:
String
)
:
String
?
open
override
fun
getString
(
key
:
String
,
default
:
String
)
:
String
get
Value
Link copied to clipboard
fun
getValue
(
key
:
String
)
:
Any
?
put
Boolean
Link copied to clipboard
open
override
fun
putBoolean
(
key
:
String
,
value
:
Boolean
)
put
Byte
Array
Link copied to clipboard
open
override
fun
putByteArray
(
key
:
String
,
value
:
ByteArray
)
put
Float
Link copied to clipboard
open
override
fun
putFloat
(
key
:
String
,
value
:
Float
)
put
Int
Link copied to clipboard
open
override
fun
putInt
(
key
:
String
,
value
:
Int
)
put
Long
Link copied to clipboard
open
override
fun
putLong
(
key
:
String
,
value
:
Long
)
put
Serializable
Link copied to clipboard
inline
fun
<
T
:
Any
>
KeyValueStorage
.
putSerializable
(
key
:
String
,
value
:
T
)
put
String
Link copied to clipboard
open
override
fun
putString
(
key
:
String
,
value
:
String
)
put
Value
Link copied to clipboard
fun
putValue
(
key
:
String
,
value
:
Any
?
)