Skip to content

MutableEntry

data class MutableEntry<K, V>(var key: K, var value: V) : Map.Entry<K, V> 

A Map.Entry whose key and value can be reassigned, unlike the standard read-only entry.

Constructors

MutableEntry

constructor(key: K, value: V)

Properties

key

open override var key: K

value

open override var value: V

Functions

toMutableEntry

fun <K, V> Pair<K, V>.toMutableEntry(): MutableEntry<K, V>

Converts a Pair into a MutableEntry.

Copies a Map.Entry into a standalone, mutable MutableEntry.