Kactoos

kactoos-jvm / nnl.rocks.kactoos.map / MapOf

MapOf

class MapOf<X : Any, Y : Any> : MapEnvelope<X, Y>

Constructs Map from various inputs.

There is no thread-safety guarantee.

Parameters

X - Type of key

Y - Type of value

Constructors

Name Summary
<init> MapOf(vararg entries: Entry<X, Y>)
Map from vararg Map.EntryMapOf(source: Map<X, Y>, vararg entries: Entry<X, Y>)
Extend Map with vararg entriesMapOf(source: Map<X, Y>, entries: Iterable<Entry<X, Y>>)
Extend Map with iterable entriesMapOf(entries: Iterable<Entry<X, Y>>)
Map from iterable Map.Entry

Inherited Functions

Name Summary
unsafeGet fun unsafeGet(key: K): V
Returns the value corresponding to the given key, or throws NoSuchElementException if such a key is not present in the map.

Companion Object Functions

Name Summary
invoke operator fun <X : Any, Y : Any, Z : Any> invoke(key: KFunc<Z, X>, value: KFunc<Z, Y>, list: Iterable<Z>): MapOf<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(key: KFunc<Z, X>, value: KFunc<Z, Y>, src: Map<X, Y>, list: Iterable<Z>): MapOf<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(entry: KFunc<Z, Entry<X, Y>>, list: Iterable<Z>): MapOf<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(entry: KFunc<Z, Entry<X, Y>>, src: Map<X, Y>, list: Iterable<Z>): MapOf<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(key: Func<Z, X>, value: Func<Z, Y>, list: Iterable<Z>): MapOf<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(key: Func<Z, X>, value: Func<Z, Y>, src: Map<X, Y>, list: Iterable<Z>): MapOf<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(entry: Func<Z, Entry<X, Y>>, list: Iterable<Z>): MapOf<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(entry: Func<Z, Entry<X, Y>>, src: Map<X, Y>, list: Iterable<Z>): MapOf<X, Y>