ReactiveMap<K, V> extension

Extension for Reactive<Map<K, V>> providing common map utilities.

on

Properties

entries Iterable<MapEntry<K, V>>

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

no setter
keys Iterable<K>

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

no setter
values Iterable<V>

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

no setter

Methods

clear() → void

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

Clears all entries in the reactive map.
forEach(void action(K k, V v)) → void

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

get(K k) → V?

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

has(String key) bool

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

Returns true if the reactive map contains key and its value is not null.
put(K key, V value) → void

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

Inserts or updates a key-value pair in the reactive map.
remove(K key) → void

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

Removes a key from the reactive map.

Operators

operator [](K k) → V?

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension

operator []=(K k, V v) → void

Available on Reactive<Map<K, V>>, provided by the ReactiveMap extension