K
- The key type.V
- The value type.public class MapView<K,V> extends AbstractMap<K,V> implements Serializable
Map
implementation base class to provide a view of a wrapped
Map
. Subclass designers should override entrySet()
first. All implemented methods simply pass the call to the wrapped
Map
(all other methods are implemented by AbstractMap
).Modifier and Type | Class and Description |
---|---|
protected class |
MapView.EntrySet
entrySet implementation class. |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected MapView.EntrySet |
entrySet |
Constructor and Description |
---|
MapView(Map<K,V> map)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Set<Map.Entry<K,V>> |
entrySet()
|
V |
get(Object key) |
protected Map<K,V> |
map() |
V |
put(K key,
V value) |
V |
remove(Object key) |
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Copyright © 2015–2020 Allen D. Ball. All rights reserved.