soot.util
Class HashMultiMap
java.lang.Object
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
HashMultiMap
public HashMultiMap()
HashMultiMap
public HashMultiMap(MultiMap m)
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