Kactoos

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

StickyMap

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

Map decorator that goes through the map only once.

There is no thread-safety guarantee.

Parameters

X - Type of key

Y - Type of value

Since 0.4

Constructors

Name Summary
<init> StickyMap(map: Map<X, Y>)
StickyMap(vararg list: Entry<X, Y>)
StickyMap(map: Map<X, Y>, vararg list: Entry<X, Y>)
StickyMap(list: Iterable<Entry<X, Y>>)
StickyMap(map: Map<X, Y>, list: Iterable<Entry<X, Y>>)

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