Package soot.util
Interface MultiMap<K,V>
-
- All Superinterfaces:
Iterable<heros.solver.Pair<K,V>>
- All Known Implementing Classes:
AbstractMultiMap,ConcurrentHashMultiMap,HashMultiMap,IdentityHashMultiMap,SHashMultiMap
public interface MultiMap<K,V> extends Iterable<heros.solver.Pair<K,V>>
A map with sets as values.- Author:
- Ondrej Lhotak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()booleancontains(K key, V value)booleancontainsKey(K key)booleancontainsValue(V value)Set<V>get(K o)booleanisEmpty()Set<K>keySet()intnumKeys()booleanput(K key, V value)booleanputAll(Map<K,Collection<V>> m)booleanputAll(K key, Collection<V> values)booleanputAll(MultiMap<K,V> m)booleanputMap(Map<K,V> m)booleanremove(K key)booleanremove(K key, V value)booleanremoveAll(K key, Collection<V> values)intsize()Gets the number of keys in this MultiMapSet<V>values()-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
-
numKeys
int numKeys()
-
containsKey
boolean containsKey(K key)
-
containsValue
boolean containsValue(V value)
-
putAll
boolean putAll(K key, Collection<V> values)
-
putAll
boolean putAll(Map<K,Collection<V>> m)
-
remove
boolean remove(K key)
-
removeAll
boolean removeAll(K key, Collection<V> values)
-
size
int size()
Gets the number of keys in this MultiMap- Returns:
- The number of keys in this MultiMap
-
clear
void clear()
-
-