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
StickyMap
.
There is no thread-safety guarantee.
StickyMap
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(Iterator<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, get, isEmpty, keySet, put, putAll, remove, size, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, 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 listlist
- List of itemskey
- Func to create keyvalue
- Func to create valuepublic MapOf(Func<Z,X> key, Func<Z,Y> value, Map<X,Y> src, Iterable<Z> list)
Z
- Type of items in the listsrc
- The map to extendlist
- List of itemskey
- Func to create keyvalue
- Func to create valuepublic MapOf(Func<Z,Map.Entry<X,Y>> entry, Iterable<Z> list)
Z
- Type of items in the listlist
- List of itemsentry
- Func to create entrypublic MapOf(Func<Z,Map.Entry<X,Y>> entry, Map<X,Y> src, Iterable<Z> list)
Z
- Type of items in the listsrc
- The map to extendlist
- List of itemsentry
- Func to create entrypublic MapOf(Map<X,Y> src, Iterable<Map.Entry<X,Y>> list)
src
- Map to extendlist
- List of the entriespublic MapOf(Iterator<Map.Entry<X,Y>> entries)
entries
- List of the entriesCopyright © 2017 Cactoos. All rights reserved.