MapBuilder

open class MapBuilder

Deprecated

Utility class for creating maps

Deprecated

Use Kotlin's built-in collections extensions

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Builder<K, V>

Functions

Link copied to clipboard
open fun <K, V> builder(): MapBuilder.Builder<K, V>
Returns map containing the given entries.
Link copied to clipboard
open fun <K, V> newHashMap(): HashMap<K, V>
Creates an instance of HashMap
Link copied to clipboard
open fun <K, V> of(): Map<K, V>
Returns the empty map.
open fun <K, V> of(k1: K, v1: V): Map<K, V>
Returns map containing a single entry.
open fun <K, V> of(k1: K, v1: V, k2: K, v2: V): Map<K, V>
open fun <K, V> of(k1: K, v1: V, k2: K, v2: V, k3: K, v3: V): Map<K, V>
open fun <K, V> of(k1: K, v1: V, k2: K, v2: V, k3: K, v3: V, k4: K, v4: V): Map<K, V>
open fun <K, V> of(k1: K, v1: V, k2: K, v2: V, k3: K, v3: V, k4: K, v4: V, k5: K, v5: V): Map<K, V>
open fun <K, V> of(k1: K, v1: V, k2: K, v2: V, k3: K, v3: V, k4: K, v4: V, k5: K, v5: V, k6: K, v6: V): Map<K, V>
open fun <K, V> of(k1: K, v1: V, k2: K, v2: V, k3: K, v3: V, k4: K, v4: V, k5: K, v5: V, k6: K, v6: V, k7: K, v7: V): Map<K, V>
Returns map containing the given entries.