Entry

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

Represents a key/value pair held by a Map.

Since Kotlin

1.0

Inheritors

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

Represents a key/value pair held by a Map.

Since Kotlin

1.3

Inheritors

Properties

Link copied to clipboard
abstract val key: K

Returns the key of this key/value pair.

Since Kotlin 1.0
abstract val key: K

Returns the key of this key/value pair.

Since Kotlin 1.3
Link copied to clipboard
abstract val value: V

Returns the value of this key/value pair.

Since Kotlin 1.0
abstract val value: V

Returns the value of this key/value pair.

Since Kotlin 1.3

Functions

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

Returns the key component of the map entry.

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

Returns the value component of the map entry.

Since Kotlin 1.0
Link copied to clipboard
inline fun <K, V> Map.Entry<K, V>.toPair(): Pair<K, V>

Converts entry to Pair with key being first component and value being second.

Since Kotlin 1.0