kactoos-jvm / nnl.rocks.kactoos.map / 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.
X - Type of key
Y - Type of value
Since 0.4
| 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>>) |
| Name | Summary |
|---|---|
| unsafeGet | fun unsafeGet(key: K): VReturns the value corresponding to the given key, or throws NoSuchElementException if such a key is not present in the map. |
| 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> |