public abstract class MapWrapper<K,V> extends Object implements Map<K,V>
MapWrapper is a class that acts as a proxy for
another backing map, to allow for easy extension of
Map functionality while not restricting developers to
one particular Map implementation.| Constructor and Description |
|---|
MapWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K k,
V v) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object o) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
protected abstract Map<K,V> |
wrapped() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic boolean containsKey(Object o)
containsKey in interface Map<K,V>public boolean containsValue(Object o)
containsValue in interface Map<K,V>public boolean equals(Object o)
Copyright (c) 2006 C. Scott Ananian