X
- Type of keyY
- Type of valuepublic final class MapOf<X,Y> extends MapEnvelope<X,Y>
Map
.
This class should be used very carefully. You must understand that
it will fetch the entire content of the encapsulated Map
on each
method call. It doesn't cache the data anyhow.
If you don't need this Map
to re-fresh its content on every call,
by doing round-trips to the encapsulated iterable, use
Sticky
.
There is no thread-safety guarantee.
Sticky
Constructor and Description |
---|
MapOf(Func<Z,Map.Entry<X,Y>> entry,
Iterable<Z> list)
Ctor.
|
MapOf(Func<Z,Map.Entry<X,Y>> entry,
Map<X,Y> src,
Iterable<Z> list)
Ctor.
|
MapOf(Func<Z,X> key,
Func<Z,Y> value,
Iterable<Z> list)
Ctor.
|
MapOf(Func<Z,X> key,
Func<Z,Y> value,
Map<X,Y> src,
Iterable<Z> list)
Ctor.
|
MapOf(Iterable<Map.Entry<X,Y>> entries)
Ctor.
|
MapOf(Map.Entry<X,Y>... list)
Ctor.
|
MapOf(Map<X,Y> src,
Iterable<Map.Entry<X,Y>> list)
Ctor.
|
MapOf(Map<X,Y> src,
Map.Entry<X,Y>... list)
Ctor.
|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
@SafeVarargs public MapOf(Map.Entry<X,Y>... list)
list
- List of entries@SafeVarargs public MapOf(Map<X,Y> src, Map.Entry<X,Y>... list)
src
- The map to extendlist
- List of entriespublic MapOf(Func<Z,X> key, Func<Z,Y> value, Iterable<Z> list)
Z
- Type of items in the listkey
- Func to create keyvalue
- Func to create valuelist
- List of itemspublic MapOf(Func<Z,X> key, Func<Z,Y> value, Map<X,Y> src, Iterable<Z> list)
Z
- Type of items in the listkey
- Func to create keyvalue
- Func to create valuesrc
- The map to extendlist
- List of itemspublic MapOf(Func<Z,Map.Entry<X,Y>> entry, Iterable<Z> list)
Z
- Type of items in the listentry
- Func to create entrylist
- List of itemspublic MapOf(Func<Z,Map.Entry<X,Y>> entry, Map<X,Y> src, Iterable<Z> list)
Z
- Type of items in the listentry
- Func to create entrysrc
- The map to extendlist
- List of itemspublic MapOf(Map<X,Y> src, Iterable<Map.Entry<X,Y>> list)
src
- Map to extendlist
- List of the entriesCopyright © 2017–2019 Cactoos. All rights reserved.