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(Object key,
Object value) |
boolean |
removeAll(K key,
Collection<V> value) |
MultiMap<V,K> |
transpose() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
public boolean addAll(K key, Collection<? extends V> value)
public boolean removeAll(K key, Collection<V> value)
Copyright © 2015 aQute SARL. All rights reserved.