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
Mapimplementation 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 classMapView.EntrySetentrySetimplementation 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.EntrySetentrySet
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Set<Map.Entry<K,V>>entrySet()Vget(Object key)protected Map<K,V>map()Vput(K key, V value)Vremove(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
-
-