Class WrapperMap<K,V>
java.lang.Object
org.checkerframework.afu.scenelib.util.coll.WrapperMap<K,V>
- Type Parameters:
K- the type of keys for the mapV- the type of values for the map
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
ASTIndex,VivifyingMap
A
WrapperMap is a map all of whose methods delegate by default to those of a supplied
backing map. Subclasses can add or override methods. Compare to FilterInputStream.-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWrapperMap(@Modifiable Map<K, V> back) Constructs a newWrapperMapwith the given backing map. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
back
The backing map.
-
-
Constructor Details
-
WrapperMap
Constructs a newWrapperMapwith the given backing map.- Parameters:
back- the backing map
-
-
Method Details
-
clear
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
public @IteratorPolyMod @PolyShrinkable @Ungrowable Set<@PolyModifiable Map.Entry<K,V>> entrySet(@PolyModifiable WrapperMap<K, V> this) -
get
-
isEmpty
public boolean isEmpty() -
keySet
public @IteratorPolyMod @PolyShrinkable @Ungrowable Set<K> keySet(@PolyShrinkable WrapperMap<K, V> this) -
put
-
putAll
@SideEffectsOnly("this") public void putAll(@Growable @Replaceable WrapperMap<K, V> this, Map<? extends K, ? extends V> m) -
remove
-
size
public int size() -
values
public @IteratorPolyMod @PolyShrinkable @Ungrowable Collection<V> values(@PolyShrinkable WrapperMap<K, V> this) -
equals
-
hashCode
public int hashCode() -
toString
-