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 voidclear()booleancontainsKey(K key)protected java.util.Set<V>createSet()protected java.util.Set<V>emptySet()java.util.Set<V>get(K key)booleanisEmpty()java.util.Set<K>keySet()static <K,V>
HashSetMultiMap<K,V>make()booleanput(K key, V val)booleanputAll(K key, java.util.Collection<? extends V> vals)booleanremove(K key, V val)java.util.Set<V>removeAll(K key)intsize()java.lang.StringtoString()
-
-
-
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:
containsKeyin interfaceMultiMap<K,V>
-
toString
public java.lang.String toString()
-
putAll
public boolean putAll(K key, java.util.Collection<? extends V> vals)
-
-