K - The key's type.V - The value's type.public class ConcurrentDistinctMultiValueMap<K,V> extends Object
removed
prior to the insertion of the new element.ConcurrentLinkedDistinctQueue| Constructor and Description |
|---|
ConcurrentDistinctMultiValueMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Collection<V> |
computeIfAbsent(K key,
Function<? super K,? extends Collection<V>> mappingFunction) |
Collection<V> |
get(K key) |
boolean |
isEmpty() |
void |
put(K key,
Collection<V> values) |
void |
put(K key,
V value) |
Collection<V> |
remove(K key) |
void |
removeValue(V value)
Removes the given value from all collections stored under any key.
|
Map<K,Collection<V>> |
shallowCopy() |
int |
size() |
Collection<Collection<V>> |
values() |
public Collection<V> get(K key)
public void clear()
public Collection<V> remove(K key)
public Collection<Collection<V>> values()
public void put(K key, Collection<V> values)
public Collection<V> computeIfAbsent(K key, Function<? super K,? extends Collection<V>> mappingFunction)
key - must not be null.mappingFunction - must not be null.null.public Map<K,Collection<V>> shallowCopy()
public int size()
public boolean isEmpty()
public void removeValue(V value)
value - must not be null.Copyright © 2024. All rights reserved.