kactoos-jvm / nnl.rocks.kactoos.map / SyncMap
class SyncMap<X :
Any
, Y :
Any
> :
MapEnvelope
<
X
,
Y
>
Map decorator that goes through the map only once.
The map is read-only.
Objects of this class are thread-safe.
X
- Type of key
Y
- Type of value
Since 0.4
Name | Summary |
---|---|
<init> | SyncMap(vararg list: Entry < X , Y >) SyncMap(map: Map < X , Y >, vararg list: Entry < X , Y >) SyncMap(list: Iterable < Entry < X , Y >>) SyncMap(map: Map < X , Y >, list: Iterable < Entry < X , Y >>) SyncMap(map: Map < X , Y >) Map decorator that goes through the map only once. |
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. |
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 >): SyncMap < X , Y > operator fun <X : Any , Y : Any , Z : Any > invoke(list: Iterable < Z >, key: Func < Z , X >, value: Func < Z , Y >): SyncMap < X , Y > operator fun <X : Any , Y : Any , Z : Any > invoke(entry: Func < Z , Entry < X , Y >>, vararg args: Z ): SyncMap < X , Y > operator fun <X : Any , Y : Any , Z : Any > invoke(entry: Func < Z , Entry < X , Y >>, list: Iterable < Z >): SyncMap < X , Y > operator fun <X : Any , Y : Any , Z : Any > invoke(entry: Func < Z , Entry < X , Y >>, map: Map < X , Y >, list: Iterable < Z >): SyncMap < X , Y > |