CSStore

interface CSStore : Iterable<Map.Entry<String, Any?>> , CSJsonObjectInterface

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun bulkSave(): Closeable
Link copied to clipboard
abstract fun clear()
abstract fun clear(key: String)
Link copied to clipboard
open fun forEach(p0: Consumer<in Map.Entry<String, Any?>>)
Link copied to clipboard
open fun get(key: String): String?
Link copied to clipboard
open fun getBoolean(key: String, default: Boolean): Boolean
open fun getBoolean(key: String, default: Boolean?): Boolean?
Link copied to clipboard
open fun getDouble(key: String, default: Double): Double
open fun getDouble(key: String, default: Double?): Double?
Link copied to clipboard
open fun getFloat(key: String, default: Float): Float
open fun getFloat(key: String, default: Float?): Float?
Link copied to clipboard
open fun getInt(key: String, default: Int): Int
open fun getInt(key: String, default: Int?): Int?
Link copied to clipboard
abstract fun <T : CSJsonObject> getJsonObject(key: String, type: KClass<T>): T?
Link copied to clipboard
abstract fun <T : CSJsonObject> getJsonObjectList(key: String, type: KClass<T>): List<T>?
Link copied to clipboard
open fun getList(key: String): List<Any?>?
Link copied to clipboard
open fun getLong(key: String, default: Long): Long
open fun getLong(key: String, default: Long?): Long?
Link copied to clipboard
open fun getMap(key: String): Map<String, Any?>?
Link copied to clipboard
open fun getString(key: String): String?
open fun getString(key: String, default: String): String
Link copied to clipboard
open fun has(key: String): Boolean
Link copied to clipboard
abstract operator fun iterator(): Iterator<Map.Entry<String, Any?>>
Link copied to clipboard
abstract fun load(data: Map<String, Any?>)
Link copied to clipboard
open fun reload(data: Map<String, Any?>)
Link copied to clipboard
abstract fun <T : CSJsonObject> set(key: String, value: T?)
abstract fun set(key: String, value: Array<*>?)
open fun set(key: String, boolean: Boolean?)
open fun set(key: String, double: Double?)
open fun set(key: String, float: Float?)
open fun set(key: String, int: Int?)
open fun set(key: String, long: Long?)
abstract fun set(key: String, string: String?)
abstract fun set(key: String, value: List<*>?)
abstract fun set(key: String, value: Map<String, *>?)
Link copied to clipboard
open fun spliterator(): Spliterator<Map.Entry<String, Any?>>

Properties

Link copied to clipboard
abstract val data: Map<String, Any?>
Link copied to clipboard
abstract val eventChanged: CSEvent<CSStore>
Link copied to clipboard
abstract val eventLoaded: CSEvent<CSStore>
Link copied to clipboard
abstract val jsonMap: Map<String, *>

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun CSStore.lateBoolProperty(key: String, onChange: ArgFunc<Boolean>? = null): CSLateStoreProperty<Boolean>
Link copied to clipboard
fun CSStore.lateIntProperty(key: String, onChange: ArgFunc<Int>? = null): CSLateStoreProperty<Int>
Link copied to clipboard
fun <T : CSJsonObjectStore> CSStore.lateJsonListListProperty(    key: String,     listType: KClass<T>,     onChange: ArgFunc<List<List<T>>>? = null): CSLateStoreProperty<List<List<T>>>
inline fun <T : CSJsonObjectStore> CSStore.lateJsonListListProperty(key: String, noinline onChange: ArgFunc<List<List<T>>>? = null): CSLateStoreProperty<List<List<T>>>
Link copied to clipboard
fun <T : CSJsonObjectStore> CSStore.lateJsonListProperty(    key: String,     listType: KClass<T>,     onChange: ArgFunc<List<T>>? = null): CSLateStoreProperty<List<T>>
inline fun <T : CSJsonObjectStore> CSStore.lateJsonListProperty(key: String, noinline onChange: ArgFunc<List<T>>? = null): CSLateStoreProperty<List<T>>
Link copied to clipboard
fun <T : CSJsonObjectStore> CSStore.lateJsonProperty(    key: String,     listType: KClass<T>,     onChange: ArgFunc<T>? = null): CSLateStoreProperty<T>
inline fun <T : CSJsonObjectStore> CSStore.lateJsonProperty(key: String, noinline onChange: ArgFunc<T>? = null): CSLateStoreProperty<T>
Link copied to clipboard
fun <T> CSStore.lateListItemProperty(    key: String,     values: Iterable<T>,     onChange: ArgFunc<T>? = null): CSLateStoreProperty<T>
fun <T> CSStore.lateListItemProperty(    key: String,     values: Array<T>,     onChange: ArgFunc<T>? = null): CSLateStoreProperty<T>
Link copied to clipboard
fun CSStore.lateStringProperty(key: String, onChange: ArgFunc<String>? = null): CSLateStoreProperty<String>
Link copied to clipboard
fun CSStore.nullBoolProperty(    key: String,     default: Boolean? = null,     onChange: ArgFunc<Boolean?>? = null): CSStoreProperty<Boolean?>
Link copied to clipboard
fun CSStore.nullFloatProperty(    key: String,     default: Float? = null,     onChange: ArgFunc<Float?>? = null): CSStoreProperty<Float?>
Link copied to clipboard
fun CSStore.nullIntProperty(    key: String,     default: Int? = null,     onChange: ArgFunc<Int?>? = null): CSStoreProperty<Int?>
Link copied to clipboard
fun <T : CSJsonObjectStore> CSStore.nullJsonProperty(    key: String,     default: T? = null,     onChange: ArgFunc<T?>? = null): CSStoreProperty<T?>
Link copied to clipboard
fun <T> CSStore.nullListItemProperty(    key: String,     getValues: () -> List<T>,     getDefault: () -> T?,     onChange: ArgFunc<T?>? = null): CSStoreProperty<T?>
fun <T> CSStore.nullListItemProperty(    key: String,     values: List<T>,     getDefault: () -> T?,     onChange: ArgFunc<T?>? = null): CSStoreProperty<T?>
fun <T> CSStore.nullListItemProperty(    key: String,     list: List<T>,     default: T? = null,     onChange: ArgFunc<T?>? = null): CSStoreProperty<T?>
fun <T> CSStore.nullListItemProperty(    key: String,     getList: () -> List<T>,     defaultIndex: Int,     onChange: ArgFunc<T?>? = null): CSStoreProperty<T?>
fun <T> CSStore.nullListItemProperty(    key: String,     list: List<T>,     defaultIndex: Int,     onChange: ArgFunc<T?>? = null): CSStoreProperty<T?>
fun <T> CSStore.nullListItemProperty(    key: String,     array: Array<T>,     default: T? = null,     onChange: ArgFunc<T?>? = null): CSStoreProperty<T?>
fun <T> CSStore.nullListItemProperty(    key: String,     array: Array<T>,     defaultIndex: Int,     onChange: ArgFunc<T?>? = null): CSStoreProperty<T?>
Link copied to clipboard
fun CSStore.nullStringProperty(    key: String,     default: String? = null,     onChange: ArgFunc<String?>? = null): CSStoreProperty<String?>
Link copied to clipboard
inline fun <T : CSJsonObjectStore> CSStore.property(    key: String,     default: List<T>,     noinline onChange: ArgFunc<List<T>>? = null): CSStoreProperty<List<T>>
inline fun <T : CSJsonObjectStore> CSStore.property(    parent: CSHasDestroy,     key: String,     default: List<T>,     noinline onChange: ArgFunc<List<T>>? = null): CSStoreProperty<List<T>>
@JvmName(name = "propertyMutableList")
inline fun <T : CSJsonObjectStore> CSStore.property(    key: String,     default: MutableList<T>,     noinline onChange: ArgFunc<MutableList<T>>? = null): CSStoreProperty<MutableList<T>>
@JvmName(name = "propertyMutableList")
inline fun <T : CSJsonObjectStore> CSStore.property(    parent: CSHasDestroy,     key: String,     default: MutableList<T>,     noinline onChange: ArgFunc<MutableList<T>>? = null): CSStoreProperty<MutableList<T>>
fun <T : CSJsonObjectStore> CSStore.property(    key: String,     default: T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T : CSJsonObjectStore> CSStore.property(    parent: CSHasDestroy,     key: String,     default: T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T : CSJsonObjectStore> CSStore.property(    key: String,     type: KClass<T>,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T : CSJsonObjectStore> CSStore.property(    parent: CSHasDestroy,     key: String,     type: KClass<T>,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
inline fun <T : CSJsonObjectStore> CSStore.property(key: String, noinline onChange: ArgFunc<T>? = null): CSStoreProperty<T>
inline fun <T : CSJsonObjectStore> CSStore.property(    parent: CSHasDestroy,     key: String,     noinline onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    key: String,     getValues: () -> List<T>,     getDefault: () -> T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    parent: CSHasDestroy,     key: String,     getValues: () -> List<T>,     getDefault: () -> T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    key: String,     values: List<T>,     getDefault: () -> T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    parent: CSHasDestroy,     key: String,     values: List<T>,     getDefault: () -> T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    key: String,     list: List<T>,     default: T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    parent: CSHasDestroy,     key: String,     list: List<T>,     default: T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    key: String,     list: List<T>,     defaultIndex: Int,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    parent: CSHasDestroy,     key: String,     list: List<T>,     defaultIndex: Int,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    key: String,     array: Array<T>,     default: T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    parent: CSHasDestroy,     key: String,     array: Array<T>,     default: T,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    key: String,     array: Array<T>,     defaultIndex: Int,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    parent: CSHasDestroy,     key: String,     array: Array<T>,     defaultIndex: Int,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    key: String,     getList: () -> List<T>,     defaultIndex: Int,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T> CSStore.property(    parent: CSHasDestroy,     key: String,     getList: () -> List<T>,     defaultIndex: Int,     onChange: ArgFunc<T>? = null): CSStoreProperty<T>
fun <T : CSHasId> CSStore.property(    key: String,     values: List<T>,     default: List<T>,     onChange: ArgFunc<List<T>>? = null): CSStoreProperty<List<T>>
fun <T : CSHasId> CSStore.property(    parent: CSHasDestroy,     key: String,     values: List<T>,     default: List<T>,     onChange: ArgFunc<List<T>>? = null): CSStoreProperty<List<T>>
fun <T : CSHasId> CSStore.property(    key: String,     array: Array<T>,     default: List<T>,     onChange: ArgFunc<List<T>>? = null): CSStoreProperty<List<T>>
fun <T : CSHasId> CSStore.property(    parent: CSHasDestroy,     key: String,     array: Array<T>,     default: List<T>,     onChange: ArgFunc<List<T>>? = null): CSStoreProperty<List<T>>
fun CSStore.property(    key: String,     default: String,     onChange: ArgFunc<String>? = null): CSStoreProperty<String>
fun CSStore.property(    parent: CSHasDestroy,     key: String,     default: String,     onChange: ArgFunc<String>? = null): CSStoreProperty<String>
fun CSStore.property(    key: String,     default: Boolean,     onChange: ArgFunc<Boolean>? = null): CSStoreProperty<Boolean>
fun CSStore.property(    parent: CSHasDestroy,     key: String,     default: Boolean,     onChange: ArgFunc<Boolean>? = null): CSStoreProperty<Boolean>
fun CSStore.property(    key: String,     default: Int,     onChange: ArgFunc<Int>? = null): CSStoreProperty<Int>
fun CSStore.property(    parent: CSHasDestroy,     key: String,     default: Int,     onChange: ArgFunc<Int>? = null): CSStoreProperty<Int>
fun CSStore.property(    key: String,     default: Double,     onChange: ArgFunc<Double>? = null): CSStoreProperty<Double>
fun CSStore.property(    parent: CSHasDestroy,     key: String,     default: Double,     onChange: ArgFunc<Double>? = null): CSStoreProperty<Double>
fun CSStore.property(    key: String,     default: Float,     onChange: ArgFunc<Float>? = null): CSStoreProperty<Float>
fun CSStore.property(    parent: CSHasDestroy,     key: String,     default: Float,     onChange: ArgFunc<Float>? = null): CSStoreProperty<Float>
fun CSStore.property(    key: String,     default: Long,     onChange: ArgFunc<Long>? = null): CSStoreProperty<Long>
fun CSStore.property(    parent: CSHasDestroy,     key: String,     default: Long,     onChange: ArgFunc<Long>? = null): CSStoreProperty<Long>