{% setvar book_path %}/reference/kotlin/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

KotlinMap

class KotlinMap : MutableMap


For testing if externally-defined interface default method remove(key, value) is inherited.

Summary

Public constructors

KotlinMap(
    size: Int,
    entries: MutableSet<MutableMap.MutableEntry<StringString>>,
    keys: MutableSet<String>,
    values: MutableCollection<String>
)

Public functions

open Unit
open Boolean
open Boolean
open operator String?
get(key: String)
open Boolean
open String?
put(key: String, value: String)
open Unit
putAll(from: Map<StringString>)
open String?
remove(key: String)

Public properties

open MutableSet<MutableMap.MutableEntry<StringString>>
open MutableSet<String>
open Int
open MutableCollection<String>

Inherited functions

From kotlin.collections.Map
open Unit
open String
@SinceKotlin(version = "1.1")
@PlatformDependent
getOrDefault(key: String, defaultValue: String)
From kotlin.collections.MutableMap
open String?
open String
open String?
open String?
merge(p0: String, p1: String, p2: BiFunction<StringStringString?>)
open String?
open Boolean
@SinceKotlin(version = "1.1")
@PlatformDependent
remove(key: String, value: String)
open String?
replace(p0: String, p1: String)
open Boolean
replace(p0: String, p1: String, p2: String)
open Unit

Public constructors

KotlinMap

KotlinMap(
    size: Int,
    entries: MutableSet<MutableMap.MutableEntry<StringString>>,
    keys: MutableSet<String>,
    values: MutableCollection<String>
)

Public functions

clear

open fun clear(): Unit

containsKey

open fun containsKey(key: String): Boolean

containsValue

open fun containsValue(value: String): Boolean

get

open operator fun get(key: String): String?

isEmpty

open fun isEmpty(): Boolean

put

open fun put(key: String, value: String): String?

putAll

open fun putAll(from: Map<StringString>): Unit

remove

open fun remove(key: String): String?

Public properties

entries

open val entriesMutableSet<MutableMap.MutableEntry<StringString>>

keys

open val keysMutableSet<String>

size

open val sizeInt

values

open val valuesMutableCollection<String>