public class DeltaCollectionValuedMap<K,V> extends CollectionValuedMap<K,V>
DeltaMap.cf, mf| Constructor and Description |
|---|
DeltaCollectionValuedMap(CollectionValuedMap<K,V> originalMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(K key,
V value)
Adds the value to the Collection mapped to by the key.
|
void |
addAll(Map<K,V> m)
Adds all of the mappings in m to this CollectionValuedMap.
|
void |
clear()
This is more expensive than normal.
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value)
Unsupported.
|
Set<Map.Entry<K,Collection<V>>> |
entrySet()
This is cheap.
|
Collection<V> |
get(Object key) |
boolean |
isEmpty() |
Collection<V> |
put(K key,
Collection<V> value)
Replaces current Collection mapped to key with the specified Collection.
|
void |
putAll(Map<? extends K,? extends Collection<V>> m)
Unsupported.
|
Collection<V> |
remove(Object key)
Removes the mapping associated with this key from this Map.
|
void |
removeMapping(K key,
V value)
Removes the value from the Collection mapped to by this key, leaving the
rest of the collection intact.
|
int |
size()
The number of keys in this map.
|
Collection<Collection<V>> |
values() |
public DeltaCollectionValuedMap(CollectionValuedMap<K,V> originalMap)
public Collection<V> get(Object key)
get in interface Map<K,Collection<V>>get in class CollectionValuedMap<K,V>public Collection<V> put(K key, Collection<V> value)
CollectionValuedMapput in interface Map<K,Collection<V>>put in class CollectionValuedMap<K,V>public void putAll(Map<? extends K,? extends Collection<V>> m)
CollectionValuedMapCollectionValuedMap.addAll(Map) instead.putAll in interface Map<K,Collection<V>>putAll in class CollectionValuedMap<K,V>public void add(K key, V value)
CollectionValuedMapadd in class CollectionValuedMap<K,V>public void addAll(Map<K,V> m)
addAll in class CollectionValuedMap<K,V>public Collection<V> remove(Object key)
CollectionValuedMapremove in interface Map<K,Collection<V>>remove in class CollectionValuedMap<K,V>public void removeMapping(K key, V value)
CollectionValuedMapremoveMapping in class CollectionValuedMap<K,V>key - the key to the Collection to remove the value fromvalue - the value to removepublic boolean containsKey(Object key)
containsKey in interface Map<K,Collection<V>>containsKey in class CollectionValuedMap<K,V>public boolean containsValue(Object value)
CollectionValuedMapcontainsValue in interface Map<K,Collection<V>>containsValue in class CollectionValuedMap<K,V>public void clear()
clear in interface Map<K,Collection<V>>clear in class CollectionValuedMap<K,V>public boolean isEmpty()
isEmpty in interface Map<K,Collection<V>>isEmpty in class CollectionValuedMap<K,V>public int size()
CollectionValuedMapsize in interface Map<K,Collection<V>>size in class CollectionValuedMap<K,V>public Collection<Collection<V>> values()
values in interface Map<K,Collection<V>>values in class CollectionValuedMap<K,V>public Set<Map.Entry<K,Collection<V>>> entrySet()
entrySet in interface Map<K,Collection<V>>entrySet in class CollectionValuedMap<K,V>