clearAndPutAll

fun clearAndPutAll(from: Map<K, V>)

Replaces the whole content of this map with from, like doing a clear followed by a putAll, * but without notifying per-key observers for keys that remain present (unless their value changes).

Parameters

from

A map containing the new key-value pairs to populate the map with.