Kactoos

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

SolidMap

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

A Map that is both synchronized and sticky.

Objects of this class are thread-safe.

Parameters

X - Type of key

Y - Type of value

Since 0.4

Constructors

Name Summary
<init> SolidMap(vararg list: Entry<X, Y>)
SolidMap(map: Map<X, Y>, vararg list: Entry<X, Y>)
SolidMap(list: Iterable<Entry<X, Y>>)
SolidMap(map: Map<X, Y>, list: Iterable<Entry<X, Y>>)SolidMap(map: Map<X, Y>)
A Map that is both synchronized and sticky.

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: Func<Z, X>, value: Func<Z, Y>, map: Map<X, Y>, list: Iterable<Z>): SolidMap<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(list: Iterable<Z>, key: Func<Z, X>, value: Func<Z, Y>): SolidMap<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(entry: Func<Z, Entry<X, Y>>, vararg args: Z): SolidMap<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(entry: Func<Z, Entry<X, Y>>, list: Iterable<Z>): SolidMap<X, Y>
operator fun <X : Any, Y : Any, Z : Any> invoke(entry: Func<Z, Entry<X, Y>>, map: Map<X, Y>, list: Iterable<Z>): SolidMap<X, Y>