K - the key typeV - the value typeC - the collection type@Deprecated public abstract class AbstractDelegatingMultiMap<K,V,C extends Collection<V>> extends Object implements MultiMap<K,V,C>
| Constructor and Description |
|---|
AbstractDelegatingMultiMap()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
C |
add(K key,
V value)
Deprecated.
Adds the specified value to the key.
|
C |
addAll(K key,
Collection<? extends V> values)
Deprecated.
Adds the specified values to the key.
|
C |
allValues()
Deprecated.
|
void |
clear()
Deprecated.
|
boolean |
containsCollectionValue(V v)
Deprecated.
Checks if any collection of any key contains
v. |
boolean |
containsKey(Object key)
Deprecated.
|
boolean |
containsValue(Object value)
Deprecated.
|
Set<Map.Entry<K,C>> |
entrySet()
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
C |
get(Object key)
Deprecated.
|
protected abstract Map<K,C> |
getDelegate()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
hasValues(K key)
Deprecated.
Checks if the specified key is contained in this map and if the associated collection is not empty.
|
boolean |
isEmpty()
Deprecated.
|
Set<K> |
keySet()
Deprecated.
|
protected abstract C |
newCollection()
Deprecated.
|
C |
put(K key,
C value)
Deprecated.
|
void |
putAll(Map<? extends K,? extends C> m)
Deprecated.
|
boolean |
remove(K key,
Iterable<V> value)
Deprecated.
Removes the values of the collection for the specified key (if it exists).
|
C |
remove(Object key)
Deprecated.
|
boolean |
remove(Object k,
Object v)
Deprecated.
Removes the value of the collection for the specified key (if it exists).
|
boolean |
removeWithKey(K key,
Iterable<V> value)
Deprecated.
Removes the specified values of the collection for the specified key (if it exists).
|
boolean |
removeWithKey(K key,
V value)
Deprecated.
Removes the specified value of the collection for the specified key (if it exists).
|
int |
size()
Deprecated.
|
Collection<C> |
values()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replace, replace, replaceAllpublic boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Map<K,C extends Collection<V>>public boolean containsValue(Object value)
containsValue in interface Map<K,C extends Collection<V>>public C add(K key, V value)
MultiMapnull it will be created.public boolean remove(Object k, Object v)
MultiMappublic boolean remove(K key, Iterable<V> value)
MultiMappublic void clear()
public Collection<C> values()
public C allValues()
public boolean equals(Object o)
public int hashCode()
public boolean containsCollectionValue(V v)
MultiMapv.containsCollectionValue in interface MultiMap<K,V,C extends Collection<V>>v - the element to checkpublic boolean hasValues(K key)
MultiMappublic C addAll(K key, Collection<? extends V> values)
MultiMapnull it will be created.public boolean removeWithKey(K key, V value)
MultiMapremoveWithKey in interface MultiMap<K,V,C extends Collection<V>>key - the keyvalue - the valuepublic boolean removeWithKey(K key, Iterable<V> value)
MultiMapremoveWithKey in interface MultiMap<K,V,C extends Collection<V>>key - the keyvalue - the valueprotected abstract Map<K,C> getDelegate()
protected abstract C newCollection()
Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.