soot.util
Class HashMultiMap

java.lang.Object
  extended by soot.util.HashMultiMap
All Implemented Interfaces:
MultiMap
Direct Known Subclasses:
SHashMultiMap

public class HashMultiMap
extends Object
implements MultiMap

A map with sets as values, HashMap implementation.

Author:
Ondrej Lhotak

Constructor Summary
HashMultiMap()
           
HashMultiMap(MultiMap m)
           
 
Method Summary
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 boolean equals(Object o)
           
 Set get(Object o)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set keySet()
           
protected  Set newSet()
           
 int numKeys()
           
 boolean put(Object key, Object value)
           
 void putAll(MultiMap m)
           
 boolean putAll(Object key, Set values)
           
 boolean remove(Object key)
           
 boolean remove(Object key, Object value)
           
 boolean removeAll(Object key, Set values)
           
 Set values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashMultiMap

public HashMultiMap()

HashMultiMap

public HashMultiMap(MultiMap m)
Method Detail

putAll

public void putAll(MultiMap m)
Specified by:
putAll in interface MultiMap

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface MultiMap

numKeys

public int numKeys()
Specified by:
numKeys in interface MultiMap

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface MultiMap

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface MultiMap

newSet

protected Set newSet()

put

public boolean put(Object key,
                   Object value)
Specified by:
put in interface MultiMap

putAll

public boolean putAll(Object key,
                      Set values)
Specified by:
putAll in interface MultiMap

remove

public boolean remove(Object key,
                      Object value)
Specified by:
remove in interface MultiMap

remove

public boolean remove(Object key)
Specified by:
remove in interface MultiMap

removeAll

public boolean removeAll(Object key,
                         Set values)
Specified by:
removeAll in interface MultiMap

get

public Set get(Object o)
Specified by:
get in interface MultiMap

keySet

public Set keySet()
Specified by:
keySet in interface MultiMap

values

public Set values()
Specified by:
values in interface MultiMap

equals

public boolean equals(Object o)
Specified by:
equals in interface MultiMap
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface MultiMap
Overrides:
hashCode in class Object