clearAndAddAll

fun clearAndAddAll(items: Set<T>)

Replaces the contents of this set with items. The observers of the set are notified once, if the contents change, and the observers of an item only if the presence of that item changes.

Parameters

items

the new contents of this set