Class ArraySetMultiMap<K,V>
- java.lang.Object
-
- soot.jimple.spark.ondemand.genericutil.ArraySetMultiMap<K,V>
-
- All Implemented Interfaces:
MultiMap<K,V>
- Direct Known Subclasses:
SootUtil.FieldAccessMap,SootUtil.FieldToEdgesMap
public class ArraySetMultiMap<K,V> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancreatestatic ArraySetMultiMapEMPTYprotected Map<K,Set<V>>map
-
Constructor Summary
Constructors Constructor Description ArraySetMultiMap()ArraySetMultiMap(boolean create)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(K key)protected Set<V>createSet()protected Set<V>emptySet()ArraySet<V>get(K key)booleanisEmpty()Set<K>keySet()booleanput(K key, V val)booleanputAll(K key, Collection<? extends V> vals)booleanremove(K key, V val)Set<V>removeAll(K key)intsize()StringtoString()
-
-
-
Field Detail
-
EMPTY
public static final ArraySetMultiMap EMPTY
-
create
protected final boolean create
-
-
Method Detail
-
containsKey
public boolean containsKey(K key)
- Specified by:
containsKeyin interfaceMultiMap<K,V>
-
toString
public String toString()
-
putAll
public boolean putAll(K key, Collection<? extends V> vals)
-
-