K
- the key typeV
- the value typeC
- the collection typepublic interface MultiMap<K,V,C extends Collection<V>> extends Map<K,C>, Serializable
Modifier and Type | Method and Description |
---|---|
C |
add(K key,
V value)
Adds the specified value to the key.
|
C |
addAll(K key,
Collection<? extends V> values)
Adds the specified values to the key.
|
C |
allValues() |
boolean |
containsCollectionValue(V v)
Checks if any collection of any key contains
v . |
boolean |
hasValues(K key)
Checks if the specified key is contained in this map and if the
associated collection is not empty.
|
boolean |
remove(K key,
Iterable<V> value)
Removes the values of the collection for the specified key (if it
exists).
|
boolean |
remove(Object key,
Object value)
Removes the value of the collection for the specified key (if it exists).
|
boolean |
removeWithKey(K key,
Iterable<V> value)
Removes the specified values of the collection for the specified key (if
it exists).
|
boolean |
removeWithKey(K key,
V value)
Removes the specified value of the collection for the specified key (if
it exists).
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
boolean containsCollectionValue(V v)
v
.v
- the element to checkC add(K key, V value)
null
it will be created.key
- the keyvalue
- the valueC addAll(K key, Collection<? extends V> values)
null
it will be created.key
- the keyvalues
- the valuesboolean remove(Object key, Object value)
boolean removeWithKey(K key, V value)
key
- the keyvalue
- the valueboolean remove(K key, Iterable<V> value)
key
- the keyvalue
- the values to removeboolean removeWithKey(K key, Iterable<V> value)
key
- the keyvalue
- the valueboolean hasValues(K key)
key
- the keyC allValues()
Copyright © 2012-2015 52north.org. All Rights Reserved.