ImmutableMap

data class ImmutableMap<K, out V>(val value: Map<K, V> = HashMap())

Immutable map

Parameters

K

tupe K

out

V type V

Constructors

Link copied to clipboard
constructor(value: Map<K, V> = HashMap())

Properties

Link copied to clipboard
val value: Map<K, V>

Map input map

Functions

Link copied to clipboard
fun count(): Int

Returns the count of the values in the immutable map

Link copied to clipboard
operator fun get(key: K): V?

Returns the element with provided key in immutable map