ObservableMap

interface ObservableMap<K : Any, out V> : Map<K, V> , Observable

Inheritors

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
open fun addChangeListener(lambda: (map: ObservableMap<K, V>, changes: List<MapChange<K, V>>) -> Unit): MapChangeListener<K, V>
Link copied to clipboard
abstract fun addListener(listener: InvalidationListener)
Link copied to clipboard
open fun addWeakChangeListener(lambda: (list: ObservableMap<K, V>, change: List<MapChange<K, V>>) -> Unit): MapChangeListener<K, V>
Link copied to clipboard
Link copied to clipboard
fun <K : Any, V> Map<K, V>.asReadOnly(): Map<K, V>

Wraps the Map with a lightweight delegating class that prevents casting back to mutable type

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
Link copied to clipboard
Link copied to clipboard
abstract fun removeListener(listener: InvalidationListener)
Link copied to clipboard