public abstract class AbstractMultimap<K,V> extends Object implements Multimap<K,V>
Constructor and Description |
---|
AbstractMultimap() |
AbstractMultimap(boolean isSet) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsEntry(Object key,
Object value) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
protected Collection<V> |
createList() |
protected abstract Map<K,Collection<V>> |
createMap() |
protected abstract Collection<V> |
createSet() |
Collection<V> |
get(K key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
boolean |
put(K key,
V value) |
boolean |
remove(Object key,
Object value) |
Collection<V> |
removeAll(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
public AbstractMultimap()
public AbstractMultimap(boolean isSet)
protected abstract Map<K,Collection<V>> createMap()
protected abstract Collection<V> createSet()
protected Collection<V> createList()
public boolean containsEntry(Object key, Object value)
containsEntry
in interface Multimap<K,V>
public boolean containsKey(Object key)
containsKey
in interface Multimap<K,V>
public boolean containsValue(Object value)
containsValue
in interface Multimap<K,V>
public Collection<V> removeAll(Object key)