entries

open override val entries: Set<Map.Entry<K, V>>(source)

Live read-only set of this map's key-value entries in unspecified iteration order.

The view reflects later map changes. Returned entries refer to stored nodes, so replacing a value updates the corresponding entry. A removed entry is detached: retaining it does not retain its association in the map, and changing its value no longer updates the map.

Entries may be cast to the matching MutableMap.MutableEntry type to call setValue; the view itself exposes no collection mutation methods. Structural changes invalidate iterator next calls; value replacement does not. Exhaustion throws NoSuchElementException, and invalidation throws IllegalStateException.