Class MemoryViewBackedMapView<T>
java.lang.Object
tools.refinery.interpreter.matchers.util.MemoryViewBackedMapView<T>
A partial and read-only Map implementation, mapping elements to multiplicities backed by an
IMemoryView.
Not implemented: write methods.
Inefficiently implemented: containsValue(Object), values(), entrySet().
- Since:
- 2.0
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
MemoryViewBackedMapView
- Parameters:
wrapped- a memory view whose contents are to be exposed as an element-to-integer map.
-
-
Method Details
-
size
-
isEmpty
-
containsKey
- Specified by:
containsKeyin interfaceMap<T,Integer>
-
containsValue
- Specified by:
containsValuein interfaceMap<T,Integer>
-
put
-
get
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-
toString
-