K - the key typeV - the value typeC - the collection type@Deprecated public abstract class AbstractSynchronizedMultiMap<K,V,C extends Collection<V>> extends AbstractDelegatingMultiMap<K,V,C>
HashMapCollections.synchronizedMap(java.util.Map),
Serialized Form| Constructor and Description |
|---|
AbstractSynchronizedMultiMap()
Deprecated.
|
AbstractSynchronizedMultiMap(int initialCapacity)
Deprecated.
|
AbstractSynchronizedMultiMap(int initialCapacity,
float loadFactor)
Deprecated.
|
AbstractSynchronizedMultiMap(Map<? extends K,? extends C> m)
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 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.
|
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.
|
newCollectionclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replace, replace, replaceAllpublic AbstractSynchronizedMultiMap(Map<? extends K,? extends C> m)
public AbstractSynchronizedMultiMap(int initialCapacity)
public AbstractSynchronizedMultiMap(int initialCapacity,
float loadFactor)
public AbstractSynchronizedMultiMap()
protected Map<K,C> getDelegate()
getDelegate in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public int size()
size in interface Map<K,C extends Collection<V>>size in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public boolean isEmpty()
isEmpty in interface Map<K,C extends Collection<V>>isEmpty in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public boolean containsKey(Object key)
containsKey in interface Map<K,C extends Collection<V>>containsKey in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public boolean containsValue(Object value)
containsValue in interface Map<K,C extends Collection<V>>containsValue in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public C get(Object key)
get in interface Map<K,C extends Collection<V>>get in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public C put(K key, C value)
put in interface Map<K,C extends Collection<V>>put in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public C add(K key, V value)
MultiMapnull it will be created.add in interface MultiMap<K,V,C extends Collection<V>>add in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>key - the keyvalue - the valuepublic C remove(Object key)
remove in interface Map<K,C extends Collection<V>>remove in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public boolean remove(Object k, Object v)
MultiMapremove in interface Map<K,C extends Collection<V>>remove in interface MultiMap<K,V,C extends Collection<V>>remove in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>k - the keyv - the value to removepublic boolean remove(K key, Iterable<V> value)
MultiMapremove in interface MultiMap<K,V,C extends Collection<V>>remove in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>key - the keyvalue - the values to removepublic void putAll(Map<? extends K,? extends C> m)
putAll in interface Map<K,C extends Collection<V>>putAll in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public void clear()
clear in interface Map<K,C extends Collection<V>>clear in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public Set<K> keySet()
keySet in interface Map<K,C extends Collection<V>>keySet in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public Collection<C> values()
values in interface Map<K,C extends Collection<V>>values in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public C allValues()
allValues in interface MultiMap<K,V,C extends Collection<V>>allValues in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public Set<Map.Entry<K,C>> entrySet()
entrySet in interface Map<K,C extends Collection<V>>entrySet in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public boolean equals(Object o)
equals in interface Map<K,C extends Collection<V>>equals in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public int hashCode()
hashCode in interface Map<K,C extends Collection<V>>hashCode in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>public boolean containsCollectionValue(V v)
MultiMapv.containsCollectionValue in interface MultiMap<K,V,C extends Collection<V>>containsCollectionValue in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>v - the element to checkpublic boolean hasValues(K key)
MultiMaphasValues in interface MultiMap<K,V,C extends Collection<V>>hasValues in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>key - the keypublic C addAll(K key, Collection<? extends V> values)
MultiMapnull it will be created.addAll in interface MultiMap<K,V,C extends Collection<V>>addAll in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>key - the keyvalues - the valuespublic boolean removeWithKey(K key, V value)
MultiMapremoveWithKey in interface MultiMap<K,V,C extends Collection<V>>removeWithKey in class AbstractDelegatingMultiMap<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>>removeWithKey in class AbstractDelegatingMultiMap<K,V,C extends Collection<V>>key - the keyvalue - the valueCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.