MutableFlowMap

interface MutableFlowMap<K : Any, V : Any> : FlowMap<K, V> (source)

Modifiable version of FlowMap

See also

Properties

Link copied to clipboard
abstract val entries: Set<Map.Entry<K, V>>
Link copied to clipboard
abstract val keys: Set<K>
Link copied to clipboard
abstract val size: Int
Link copied to clipboard
abstract val values: Collection<V>

Functions

Link copied to clipboard
abstract fun asFlow(predicate: (K, V) -> Boolean? = null): Flow<MapEvent<K, V>>

A Flow of events that can be used to reconstitute the current and future state of the FlowMap.

Link copied to clipboard
abstract fun asMap(): PersistentMap<K, V>

A copy of the map at this point in time

Link copied to clipboard
abstract fun clear()

Removes all elements from this map.

Link copied to clipboard
abstract fun containsKey(key: K): Boolean
Link copied to clipboard
abstract fun containsValue(value: V): Boolean
Link copied to clipboard
abstract operator fun get(key: K): V?
Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
open operator fun minusAssign(key: K)
Link copied to clipboard
abstract fun put(key: K, value: V): V?

Associates the specified value with the specified key in the map.

Link copied to clipboard
abstract fun putAll(from: Map<out K, V>)

Updates this map with key/value pairs from the specified map from.

Link copied to clipboard
abstract fun remove(key: K): V?

Removes the specified key and its corresponding value from this map.

Link copied to clipboard
open operator fun set(key: K, value: V): V?
Link copied to clipboard

Creates a copy of the provided map as a new MutableFlowMap.

Link copied to clipboard
abstract fun valueFlow(key: K): Flow<V?>

A Flow of the latest value for the provided key or null if no value is present.