Package ball.util
Class MapView<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- ball.util.MapView<K,V>
-
- Type Parameters:
K
- The key type.V
- The value type.
- All Implemented Interfaces:
Serializable
,Map<K,V>
- Direct Known Subclasses:
CoordinateMap
public class MapView<K,V> extends AbstractMap<K,V> implements Serializable
Map
implementation base class to provide a view of a wrappedMap
. Subclass designers should overrideentrySet()
first. All implemented methods simply pass the call to the wrappedMap
(all other methods are implemented byAbstractMap
).- Author:
- Allen D. Ball
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
MapView.EntrySet
entrySet
implementation class.-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected MapView.EntrySet
entrySet
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-