public abstract class AbstractMultimap<K,V,C extends Collection<V>> extends Object implements Map<K,C>
Threading note: methods operating on elements are synchronized because they are not atomic.
| Constructor and Description |
|---|
AbstractMultimap(Map<K,C> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsElement(K key,
V value) |
boolean |
containsElement(V value) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
protected abstract C |
createNewCollection() |
Set<Map.Entry<K,C>> |
entrySet() |
boolean |
equals(Object o) |
C |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
C |
put(K key,
C value) |
void |
putAll(Map<? extends K,? extends C> m) |
void |
putElement(K key,
V value) |
boolean |
putElements(K key,
Collection<V> values) |
C |
remove(Object key) |
boolean |
removeElement(K key,
V value) |
int |
size() |
Collection<C> |
values() |
C |
valuesElements() |
protected Map<K,C extends Collection<V>> map
protected abstract C createNewCollection()
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 Collection<C> values()
public boolean equals(Object o)
public int hashCode()
public boolean putElements(K key, Collection<V> values)
public boolean removeElement(K key, V value)
public boolean containsElement(V value)
public C valuesElements()
Copyright © 2016. All rights reserved.