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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.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
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<T,
Integer>
-
containsValue
- Specified by:
containsValue
in interfaceMap<T,
Integer>
-
put
-
get
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-