Viewable Map
class ViewableMap<K : Any, V : Any>(map: MutableMap<K, V> = LinkedHashMap()) : IMutableViewableMap<K, V>
Content copied to clipboard
Constructors
Link copied to clipboard
fun <K : Any, V : Any> ViewableMap(map: MutableMap<K, V> = LinkedHashMap())
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open fun adviseAddRemove(lifetime: Lifetime, handler: (AddRemove, K, V) -> Unit)
Content copied to clipboard
Adds a subscription to additions and removals of map elements. When a map element is updated, the handler is called twice: to report the removal of the old element and the addition of the new one.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard