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(boolean noduplicates) |
MultiMap(Class<K> keyClass,
Class<V> valueClass,
boolean noduplicates) |
MultiMap(Map<S,? extends List<T>> other) |
MultiMap(MultiMap<S,T> other) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(K key,
V value) |
boolean |
addAll(K key,
Collection<? extends V> value) |
boolean |
addAll(Map<K,? extends Collection<? extends V>> map) |
Iterator<V> |
all() |
List<V> |
allValues()
Return a collection with all values
|
Map<K,V> |
flatten() |
Iterator<V> |
iterate(K key) |
boolean |
removeAll(K key,
Collection<? extends V> value) |
boolean |
removeValue(K key,
V value) |
MultiMap<V,K> |
transpose() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, 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, remove, replace, replace, replaceAll, size, values
public MultiMap()
public MultiMap(boolean noduplicates)
public MultiMap(MultiMap<S,T> other)
public boolean addAll(K key, Collection<? extends V> value)
public boolean addAll(Map<K,? extends Collection<? extends V>> map)
public boolean removeAll(K key, Collection<? extends V> value)
Copyright © 2021 aQute SARL. All rights reserved.