X
- Type of keyY
- Type of valuepublic final class StickyMap<X,Y> extends Object implements Map<X,Y>
There is no thread-safety guarantee.
Constructor and Description |
---|
StickyMap(Iterable<Map.Entry<X,Y>> list)
Ctor.
|
StickyMap(Iterable<Z> list,
Func<Z,Map.Entry<X,Y>> entry)
Ctor.
|
StickyMap(Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
StickyMap(Map.Entry<X,Y>... list)
Ctor.
|
StickyMap(Map<X,Y> map)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<X,Y>> |
entrySet() |
Y |
get(Object key) |
boolean |
isEmpty() |
Set<X> |
keySet() |
Y |
put(X key,
Y value) |
void |
putAll(Map<? extends X,? extends Y> map) |
Y |
remove(Object key) |
int |
size() |
Collection<Y> |
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 StickyMap(Map.Entry<X,Y>... list)
list
- List of entriespublic StickyMap(Iterable<Z> list, Func<Z,X> key, Func<Z,Y> value)
Z
- Type of items in the listlist
- List of itemskey
- Func to create keyvalue
- Func to create valuepublic StickyMap(Iterable<Z> list, Func<Z,Map.Entry<X,Y>> entry)
Z
- Type of items in the listlist
- List of itemsentry
- Func to create entrypublic StickyMap(Iterable<Map.Entry<X,Y>> list)
list
- Entries for the entriesCopyright © 2017 Cactoos. All rights reserved.