K - the key typeV - the value typeC - the collection type@Deprecated public abstract class AbstractSynchronizedMultiMap<K,V,C extends java.util.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(java.util.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,
java.util.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(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
java.util.Set<java.util.Map.Entry<K,C>> |
entrySet()
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
C |
get(java.lang.Object key)
Deprecated.
|
protected java.util.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.
|
java.util.Set<K> |
keySet()
Deprecated.
|
C |
put(K key,
C value)
Deprecated.
|
void |
putAll(java.util.Map<? extends K,? extends C> m)
Deprecated.
|
boolean |
remove(K key,
java.lang.Iterable<V> value)
Deprecated.
Removes the values of the collection for the specified key (if it exists).
|
C |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object k,
java.lang.Object v)
Deprecated.
Removes the value of the collection for the specified key (if it exists).
|
boolean |
removeWithKey(K key,
java.lang.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.
|
java.util.Collection<C> |
values()
Deprecated.
|
newCollectionpublic AbstractSynchronizedMultiMap(java.util.Map<? extends K,? extends C> m)
public AbstractSynchronizedMultiMap(int initialCapacity)
public AbstractSynchronizedMultiMap(int initialCapacity,
float loadFactor)
public AbstractSynchronizedMultiMap()
protected java.util.Map<K,C> getDelegate()
getDelegate in class AbstractDelegatingMultiMap<K,V,C extends java.util.Collection<V>>public int size()
public boolean isEmpty()
public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<K,C extends java.util.Collection<V>>containsKey in class AbstractDelegatingMultiMap<K,V,C extends java.util.Collection<V>>public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<K,C extends java.util.Collection<V>>containsValue in class AbstractDelegatingMultiMap<K,V,C extends java.util.Collection<V>>public C get(java.lang.Object key)
public C add(K key, V value)
MultiMapnull it will be created.public C remove(java.lang.Object key)
public boolean remove(java.lang.Object k,
java.lang.Object v)
MultiMapremove in interface java.util.Map<K,C extends java.util.Collection<V>>remove in interface MultiMap<K,V,C extends java.util.Collection<V>>remove in class AbstractDelegatingMultiMap<K,V,C extends java.util.Collection<V>>k - the keyv - the value to removepublic boolean remove(K key, java.lang.Iterable<V> value)
MultiMappublic void clear()
public java.util.Set<K> keySet()
public java.util.Collection<C> values()
public C allValues()
public boolean equals(java.lang.Object o)
public int hashCode()
public boolean containsCollectionValue(V v)
MultiMapv.containsCollectionValue in interface MultiMap<K,V,C extends java.util.Collection<V>>containsCollectionValue in class AbstractDelegatingMultiMap<K,V,C extends java.util.Collection<V>>v - the element to checkpublic boolean hasValues(K key)
MultiMappublic C addAll(K key, java.util.Collection<? extends V> values)
MultiMapnull it will be created.public boolean removeWithKey(K key, V value)
MultiMapremoveWithKey in interface MultiMap<K,V,C extends java.util.Collection<V>>removeWithKey in class AbstractDelegatingMultiMap<K,V,C extends java.util.Collection<V>>key - the keyvalue - the valuepublic boolean removeWithKey(K key, java.lang.Iterable<V> value)
MultiMapremoveWithKey in interface MultiMap<K,V,C extends java.util.Collection<V>>removeWithKey in class AbstractDelegatingMultiMap<K,V,C extends java.util.Collection<V>>key - the keyvalue - the valueCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.