Class MultiMap<K,V>
java.lang.Object
aQute.lib.collections.MultiMap<K,V>
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Map<? extends K, ? extends Collection<? extends V>> other) booleanaddAll(K key, Collection<? extends V> value) all()Return a collection with all valuesvoidclear()computeIfPresent(K key, BiFunction<? super K, ? super List<V>, ? extends List<V>> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanflatten()voidforEach(BiConsumer<? super K, ? super List<V>> action) static <T extends Comparable<? super T>>
Stringformat(Map<T, ? extends Collection<?>> map) getOrDefault(Object key, List<V> defaultValue) Index a collection.inthashCode()booleanisEmpty()keySet()merge(K key, List<V> value, BiFunction<? super List<V>, ? super List<V>, ? extends List<V>> remappingFunction) voidputIfAbsent(K key, List<V> value) booleanbooleanremoveAll(K key, Collection<? extends V> value) booleanremoveValue(K key, V value) booleanvoidreplaceAll(BiFunction<? super K, ? super List<V>, ? extends List<V>> function) intsize()toString()transpose(boolean noduplicates) Collection<List<V>> values()
-
Constructor Details
-
MultiMap
public MultiMap() -
MultiMap
public MultiMap(boolean noduplicates) -
MultiMap
-
MultiMap
-
MultiMap
-
-
Method Details
-
add
-
addAll
-
addAll
-
removeValue
-
removeAll
-
iterate
-
all
-
flatten
-
transpose
-
transpose
-
allValues
-
format
-
size
-
isEmpty
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-
getOrDefault
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
-
remove
-
replace
-
replace
-
computeIfAbsent
-
computeIfPresent
-
compute
-
merge
-
hashCode
-
equals
-
toString
-
groupBy
-