public class MultiMap<K,V> extends HashMap<K,List<V>> implements Map<K,List<V>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MultiMap() |
MultiMap(Class<K> keyClass,
Class<V> valueClass,
boolean noduplicates) |
MultiMap(Map<K,List<V>> other) |
MultiMap(MultiMap<K,V> other) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(K key,
V value) |
boolean |
addAll(K key,
Collection<? extends V> value) |
Iterator<V> |
all() |
List<V> |
allValues()
Return a collection with all values
|
Map<K,V> |
flatten() |
Iterator<V> |
iterate(K key) |
boolean |
remove(K key,
V value) |
boolean |
removeAll(K key,
Collection<V> value) |
MultiMap<V,K> |
transpose() |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic boolean addAll(K key, Collection<? extends V> value)
public boolean removeAll(K key, Collection<V> value)
Copyright © 2014 aQute SARL. All rights reserved.