Kactoos

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

MapEnvelope

abstract class MapEnvelope<K : Any, out V : Any> : Map<K, V>

Map envelope.

There is no thread-safety guarantee.

Parameters

K - Type of key

V - Type of value

Since 0.3

Constructors

Name Summary
<init> MapEnvelope(map: Scalar<Map<K, V>>)MapEnvelope(map: KScalar<Map<K, V>>)
Map envelope.

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.

Inheritors

Name Summary
Grouped class Grouped<K : Any, out V : Any, T : Any> : MapEnvelope<K, List<V>>
Iterable as Map.
MapOf class MapOf<X : Any, Y : Any> : MapEnvelope<X, Y>
Constructs Map from various inputs.
SolidMap class SolidMap<X : Any, Y : Any> : MapEnvelope<X, Y>
A Map that is both synchronized and sticky.
StickyMap class StickyMap<X : Any, Y : Any> : MapEnvelope<X, Y>
Map decorator that goes through the map only once.
SyncMap class SyncMap<X : Any, Y : Any> : MapEnvelope<X, Y>
Map decorator that goes through the map only once.