public class MapOfSets<K,V>
extends java.lang.Object
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)
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.