Package pascal.taie.util.collection
Class AbstractTwoKeyMap<K1,K2,V>
java.lang.Object
pascal.taie.util.collection.AbstractTwoKeyMap<K1,K2,V>
- All Implemented Interfaces:
Serializable
,TwoKeyMap<K1,
K2, V>
- Direct Known Subclasses:
MapMapTwoKeyMap
public abstract class AbstractTwoKeyMap<K1,K2,V>
extends Object
implements TwoKeyMap<K1,K2,V>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface pascal.taie.util.collection.TwoKeyMap
TwoKeyMap.Entry<K1,
K2, V> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(K1 key1) boolean
containsKey
(K1 key1, K2 key2) boolean
containsValue
(V value) protected abstract Iterator<TwoKeyMap.Entry<K1,
K2, V>> Set<TwoKeyMap.Entry<K1,
K2, V>> entrySet()
boolean
boolean
isEmpty()
toString()
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
clear, computeIfAbsent, forEach, get, getOrDefault, getOrDefault, keySet, put, putAll, putAll, remove, removeAll, replaceALl, size
-
Field Details
-
NULL_KEY
- See Also:
-
NULL_VALUE
- See Also:
-
-
Constructor Details
-
AbstractTwoKeyMap
public AbstractTwoKeyMap()
-
-
Method Details
-
containsKey
- Specified by:
containsKey
in interfaceTwoKeyMap<K1,
K2, V> - Returns:
true
if this two-key map contains the mapping withkey1
as the first key andkey2
as the second key.
-
containsKey
- Specified by:
containsKey
in interfaceTwoKeyMap<K1,
K2, V> - Returns:
true
if this two-key map contains at least one mapping withkey1
as the first key.
-
containsValue
- Specified by:
containsValue
in interfaceTwoKeyMap<K1,
K2, V> - Returns:
true
if this two-key map contains at least one mapping withvalue
as the value. Note that this operation may be slow compared toTwoKeyMap.containsKey(Object)
.
-
get
-
entrySet
-
entryIterator
-
twoKeySet
-
values
-
isEmpty
public boolean isEmpty() -
equals
-
toString
-