Entry

interface Entry<out K, out V>(source)

A key-value association exposed by a map.

Read-only access does not guarantee that the value is immutable or detached from the map. This Guest interface does not itself define structural entry equality, hashing or text formatting.

Type Parameters

K

key type.

V

value type.

See also

Inheritors

Properties

Link copied to clipboard
abstract val key: K

Key identifying this association.

Link copied to clipboard
abstract val value: V

Value associated with key, including null for nullable value types.

Functions

Link copied to clipboard
operator fun <K, V> Map.Entry<K, V>.component1(): K

Returns this entry's key for destructuring.

Link copied to clipboard
operator fun <K, V> Map.Entry<K, V>.component2(): V

Returns this entry's current value for destructuring.