public final class Multimap<K,V> extends Object implements Serializable
| Constructor and Description |
|---|
Multimap(Map<K,Collection<V>> map,
Supplier<Collection<V>> collectionSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
@Nullable Collection<V> |
get(K key) |
void |
put(K key,
Collection<V> values) |
void |
put(K key,
V value) |
public Multimap(Map<K,Collection<V>> map, Supplier<Collection<V>> collectionSupplier)
public void put(K key, Collection<V> values)
public void clear()
@Nullable public @Nullable Collection<V> get(K key)
Copyright © 2020. All rights reserved.