X
- Type of keyY
- Type of valuepublic final class IterableAsMap<X,Y> extends Object implements Map<X,Y>
Map
.
There is no thread-safety guarantee.
Constructor and Description |
---|
IterableAsMap(Iterable<Map.Entry<X,Y>> entries)
Ctor.
|
IterableAsMap(Map.Entry<X,Y>... entries)
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> entries) |
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 IterableAsMap(Map.Entry<X,Y>... entries)
entries
- Entries for the mapCopyright © 2017 Cactoos. All rights reserved.