soot.jimple.spark.ondemand.genericutil
Class ArraySetDupesMultiMap<K,V>
java.lang.Object
soot.jimple.spark.ondemand.genericutil.ArraySetDupesMultiMap<K,V>
- All Implemented Interfaces:
- MultiMap<K,V>
public class ArraySetDupesMultiMap<K,V>
- extends Object
map
protected final Map<K,Set<V>> map
create
protected final boolean create
ArraySetDupesMultiMap
public ArraySetDupesMultiMap(boolean create)
ArraySetDupesMultiMap
public ArraySetDupesMultiMap()
createSet
protected Set<V> createSet()
emptySet
protected Set<V> emptySet()
get
public Set<V> get(K key)
- Specified by:
get
in interface MultiMap<K,V>
put
public boolean put(K key,
V val)
- Specified by:
put
in interface MultiMap<K,V>
remove
public boolean remove(K key,
V val)
- Specified by:
remove
in interface MultiMap<K,V>
removeAll
public Set<V> removeAll(K key)
- Specified by:
removeAll
in interface MultiMap<K,V>
keySet
public Set<K> keySet()
- Specified by:
keySet
in interface MultiMap<K,V>
containsKey
public boolean containsKey(K key)
- Specified by:
containsKey
in interface MultiMap<K,V>
size
public int size()
- Specified by:
size
in interface MultiMap<K,V>
toString
public String toString()
- Specified by:
toString
in interface MultiMap<K,V>
- Overrides:
toString
in class Object
putAll
public boolean putAll(K key,
Collection<? extends V> vals)
- Specified by:
putAll
in interface MultiMap<K,V>
clear
public void clear()
- Specified by:
clear
in interface MultiMap<K,V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface MultiMap<K,V>