Package pascal.taie.util.collection
Class MapMapTwoKeyMap<K1,K2,V>
java.lang.Object
pascal.taie.util.collection.AbstractTwoKeyMap<K1,K2,V>
pascal.taie.util.collection.MapMapTwoKeyMap<K1,K2,V>
- All Implemented Interfaces:
Serializable
,TwoKeyMap<K1,
K2, V>
Implements
TwoKeyMap
as map of maps.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface pascal.taie.util.collection.TwoKeyMap
TwoKeyMap.Entry<K1,
K2, V> -
Field Summary
Fields inherited from class pascal.taie.util.collection.AbstractTwoKeyMap
NULL_KEY, NULL_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Removes all the mappings from this map.protected Iterator<TwoKeyMap.Entry<K1,
K2, V>> keySet()
Associates the specified value with the specified two-key pair in this map.void
Copies all the mappings from the specified map to second-level map associated withkey1
.void
Copies all the mappings from the specified two-key map to this map.Removes the mapping for a key-pair from this map if it is present.boolean
Removes all mappings withkey1
as the first key in this map.void
replaceALl
(TriFunction<? super K1, ? super K2, ? super V, ? extends V> function) Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.int
size()
Methods inherited from class pascal.taie.util.collection.AbstractTwoKeyMap
containsKey, containsKey, containsValue, entrySet, equals, get, isEmpty, toString, twoKeySet, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface pascal.taie.util.collection.TwoKeyMap
computeIfAbsent, forEach, getOrDefault, getOrDefault
-
Constructor Details
-
MapMapTwoKeyMap
-
-
Method Details
-
get
-
put
Description copied from interface:TwoKeyMap
Associates the specified value with the specified two-key pair in this map. If the map previously contained a mapping for the keys, the old value is replaced by the specified value. -
putAll
Description copied from interface:TwoKeyMap
Copies all the mappings from the specified map to second-level map associated withkey1
. -
putAll
Description copied from interface:TwoKeyMap
Copies all the mappings from the specified two-key map to this map. -
remove
Description copied from interface:TwoKeyMap
Removes the mapping for a key-pair from this map if it is present. -
removeAll
Description copied from interface:TwoKeyMap
Removes all mappings withkey1
as the first key in this map. -
replaceALl
Description copied from interface:TwoKeyMap
Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.- Specified by:
replaceALl
in interfaceTwoKeyMap<K1,
K2, V>
-
keySet
-
entryIterator
- Specified by:
entryIterator
in classAbstractTwoKeyMap<K1,
K2, V>
-
clear
public void clear()Description copied from interface:TwoKeyMap
Removes all the mappings from this map. The map will be empty after this call returns. -
size
public int size()
-