public class MapProxy<D,R> extends Object implements Map<D,R>, Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
MapProxy.CheckedMapEntry<A,B> |
protected static class |
MapProxy.CheckedMapEntryIterator<A,B> |
protected static class |
MapProxy.CheckedMapEntrySet<A,B> |
static class |
MapProxy.implementations |
Constructor and Description |
---|
MapProxy() |
MapProxy(Map<D,R> peer) |
MapProxy(MapProxy.implementations implementation) |
Modifier and Type | Method and Description |
---|---|
SortedMap<D,R> |
asSorted()
Returns a sorted, unmodifiable view IFF the backing peer
is a sorted map.
|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<D,R>> |
entrySet() |
boolean |
equals(Object o) |
R |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<D> |
keySet() |
R |
put(D key,
R value) |
void |
putAll(Map<? extends D,? extends R> t) |
R |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<R> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public MapProxy()
public MapProxy(MapProxy.implementations implementation)
public SortedMap<D,R> asSorted()
implementstion
has been explicitly seelected as tree
on creation.UnsupportedOperationException
- if the backing peer does not
offer a sorted view.public boolean containsKey(Object key)
containsKey
in interface Map<D,R>
public boolean containsValue(Object value)
containsValue
in interface Map<D,R>
public boolean equals(Object o)
public int hashCode()
see also the complete user documentation .