public final class MapOfSets<K,V> extends Object
| Constructor and Description |
|---|
MapOfSets() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(K key,
Collection<V> value) |
boolean |
add(K key,
V value) |
Set<V> |
computeIfAbsent(K key,
Function<K,Set<V>> function) |
void |
forEach(BiConsumer<? super K,? super Set<V>> consumer) |
Set<V> |
get(K key) |
Set<V> |
getOrDefault(K key,
Set<V> defaultValue) |
Set<K> |
keys() |
public boolean add(K key, Collection<V> value)
public void forEach(BiConsumer<? super K,? super Set<V>> consumer)
Copyright © 2020. All rights reserved.