toggle menu
Spezi Documentation
androidJvm
switch theme
search in API
storage
/
edu.stanford.spezi.modules.storage.key
/
KeyValueStorage
Key
Value
Storage
sealed
interface
KeyValueStorage
Inheritors
InMemoryKeyValueStorage
KeyValueStorageImpl
Members
Members & Extensions
Functions
all
Keys
Link copied to clipboard
abstract
fun
allKeys
(
)
:
Set
<
String
>
clear
Link copied to clipboard
abstract
fun
clear
(
)
delete
Link copied to clipboard
abstract
fun
delete
(
key
:
String
)
get
Boolean
Link copied to clipboard
abstract
fun
getBoolean
(
key
:
String
,
default
:
Boolean
)
:
Boolean
get
Byte
Array
Link copied to clipboard
abstract
fun
getByteArray
(
key
:
String
)
:
ByteArray
?
abstract
fun
getByteArray
(
key
:
String
,
default
:
ByteArray
)
:
ByteArray
get
Float
Link copied to clipboard
abstract
fun
getFloat
(
key
:
String
,
default
:
Float
)
:
Float
get
Int
Link copied to clipboard
abstract
fun
getInt
(
key
:
String
,
default
:
Int
)
:
Int
get
Long
Link copied to clipboard
abstract
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
abstract
fun
getString
(
key
:
String
)
:
String
?
abstract
fun
getString
(
key
:
String
,
default
:
String
)
:
String
put
Boolean
Link copied to clipboard
abstract
fun
putBoolean
(
key
:
String
,
value
:
Boolean
)
put
Byte
Array
Link copied to clipboard
abstract
fun
putByteArray
(
key
:
String
,
value
:
ByteArray
)
put
Float
Link copied to clipboard
abstract
fun
putFloat
(
key
:
String
,
value
:
Float
)
put
Int
Link copied to clipboard
abstract
fun
putInt
(
key
:
String
,
value
:
Int
)
put
Long
Link copied to clipboard
abstract
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
abstract
fun
putString
(
key
:
String
,
value
:
String
)