public class MultiMap<K,V>
extends java.util.HashMap<K,java.util.List<V>>
implements java.util.Map<K,java.util.List<V>>
| Constructor and Description |
|---|
MultiMap() |
MultiMap(boolean noduplicates) |
MultiMap(java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass,
boolean noduplicates) |
MultiMap(java.util.Map<S,? extends java.util.List<T>> other) |
MultiMap(MultiMap<S,T> other) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(K key,
V value) |
boolean |
addAll(K key,
java.util.Collection<? extends V> value) |
boolean |
addAll(java.util.Map<K,? extends java.util.Collection<? extends V>> map) |
java.util.Iterator<V> |
all() |
java.util.List<V> |
allValues()
Return a collection with all values
|
java.util.Map<K,V> |
flatten() |
java.util.Iterator<V> |
iterate(K key) |
boolean |
removeAll(K key,
java.util.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, valuespublic MultiMap()
public MultiMap(boolean noduplicates)
public MultiMap(java.lang.Class<K> keyClass, java.lang.Class<V> valueClass, boolean noduplicates)
public MultiMap(java.util.Map<S,? extends java.util.List<T>> other)
public MultiMap(MultiMap<S,T> other)
Copyright (c) OSGi Alliance (2014, 2020). All Rights Reserved.