Core API – Kotlin Programming Language (original) (raw)

Entry

Represents a key/value pair held by a Map.

Map entries are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.

Since Kotlin

1.0

Represents a key/value pair held by a Map.

Map entries are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.

Since Kotlin

1.1

Represents a key/value pair held by a Map.

Map entries are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.

Since Kotlin

1.0

Represents a key/value pair held by a Map.

Map entries are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.

Since Kotlin

1.3

Represents a key/value pair held by a Map.

Map entries are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.

Since Kotlin

1.8

Represents a key/value pair held by a Map.

Map entries are not supposed to be stored separately or used long after they are obtained. The behavior of an entry is unspecified if the backing map has been modified after the entry was obtained.

Since Kotlin

1.8

expect abstract val key: K

Returns the key of this key/value pair.

actual abstract val key: K

Returns the key of this key/value pair.

actual abstract val key: K

Returns the key of this key/value pair.

actual abstract val key: K

Returns the key of this key/value pair.

actual abstract val key: K

Returns the key of this key/value pair.

actual abstract val key: K

Returns the key of this key/value pair.

expect abstract val value: V

Returns the value of this key/value pair.

actual abstract val value: V

Returns the value of this key/value pair.

actual abstract val value: V

Returns the value of this key/value pair.

actual abstract val value: V

Returns the value of this key/value pair.

actual abstract val value: V

Returns the value of this key/value pair.

actual abstract val value: V

Returns the value of this key/value pair.

Returns the key component of the map entry.

Returns the value component of the map entry.

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