public class MapOfSets<K,V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<K,java.util.Set<V>> |
theMap |
Constructor and Description |
---|
MapOfSets(java.util.Map<K,java.util.Set<V>> m) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<K,java.util.Set<V>> |
getMap() |
int |
put(K key,
V val)
Adds val to the Set associated with key in the Map.
|
int |
putAll(K key,
java.util.Collection<? extends V> vals)
Adds multiple vals to the Set associated with key in the Map.
|
public java.util.Map<K,java.util.Set<V>> getMap()
public int put(K key, V val)