Package soot.util
Class ConcurrentHashMultiMap<K,V>
- java.lang.Object
-
- soot.util.AbstractMultiMap<K,V>
-
- soot.util.ConcurrentHashMultiMap<K,V>
-
- All Implemented Interfaces:
Serializable,Iterable<heros.solver.Pair<K,V>>,MultiMap<K,V>
public class ConcurrentHashMultiMap<K,V> extends AbstractMultiMap<K,V>
A concurrent version of theHashMultiMap- Author:
- Steven Arzt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConcurrentHashMultiMap()ConcurrentHashMultiMap(MultiMap<K,V> m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(V value)booleanequals(Object o)Set<V>get(K o)inthashCode()Set<K>keySet()protected ConcurrentMap<V,V>newSet()intnumKeys()booleanput(K key, V value)booleanputAll(K key, Collection<V> values)VputIfAbsent(K key, V value)booleanremove(K key)booleanremove(K key, V value)booleanremoveAll(K key, Collection<V> values)intsize()Gets the number of keys in this MultiMapStringtoString()Set<V>values()-
Methods inherited from class soot.util.AbstractMultiMap
contains, isEmpty, iterator, putAll, putAll, putMap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
numKeys
public int numKeys()
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(V value)
-
newSet
protected ConcurrentMap<V,V> newSet()
-
putAll
public boolean putAll(K key, Collection<V> values)
-
remove
public boolean remove(K key)
-
removeAll
public boolean removeAll(K key, Collection<V> values)
-
size
public int size()
Description copied from interface:MultiMapGets the number of keys in this MultiMap- Returns:
- The number of keys in this MultiMap
-
clear
public void clear()
-
-