Package com.ibm.wala.util.collections
Class HashSetMultiMap<K,V>
- java.lang.Object
-
- com.ibm.wala.util.collections.HashSetMultiMap<K,V>
-
- All Implemented Interfaces:
MultiMap<K,V>
,java.io.Serializable
public class HashSetMultiMap<K,V> extends java.lang.Object
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HashSetMultiMap()
HashSetMultiMap(boolean create)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(K key)
protected java.util.Set<V>
createSet()
protected java.util.Set<V>
emptySet()
java.util.Set<V>
get(K key)
boolean
isEmpty()
java.util.Set<K>
keySet()
static <K,V>
HashSetMultiMap<K,V>make()
boolean
put(K key, V val)
boolean
putAll(K key, java.util.Collection<? extends V> vals)
boolean
remove(K key, V val)
java.util.Set<V>
removeAll(K key)
int
size()
java.lang.String
toString()
-
-
-
Method Detail
-
createSet
protected java.util.Set<V> createSet()
-
make
public static <K,V> HashSetMultiMap<K,V> make()
-
emptySet
protected java.util.Set<V> emptySet()
-
removeAll
public java.util.Set<V> removeAll(K key)
-
containsKey
public boolean containsKey(K key)
- Specified by:
containsKey
in interfaceMultiMap<K,V>
-
toString
public java.lang.String toString()
-
putAll
public boolean putAll(K key, java.util.Collection<? extends V> vals)
-
-