MutableExtraStore

A ExtraStore subclass that allows for data updates.

Constructors

Link copied to clipboard
constructor()

Creates an empty MutableExtraStore.

Functions

Link copied to clipboard
fun clear()

Removes all stored values.

Link copied to clipboard
open override fun copy(): ExtraStore

Creates a copy of this ExtraStore.

Link copied to clipboard
open override fun copyContentTo(destination: MutableMap<ExtraStore.Key<*>, Any>)

Copies this ExtraStore’s content to destination.

Link copied to clipboard
open operator override fun plus(other: ExtraStore): ExtraStore

Combines this ExtraStore and other.

Link copied to clipboard
fun remove(key: ExtraStore.Key<*>)

Removes the value associated with the provided key.

Link copied to clipboard
operator fun <T : Any> set(key: ExtraStore.Key<T>, value: T)

Saves the provided value to this MutableExtraStore, associating the value with the given key.