|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.CollectionValuedMap<K,V>
edu.stanford.nlp.util.DeltaCollectionValuedMap<K,V>
public class DeltaCollectionValuedMap<K,V>
Implementation of CollectionValuedMap that appears to store an "original"
map and changes to that map. No one currently uses it. See DeltaMap
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class edu.stanford.nlp.util.CollectionValuedMap |
---|
cf, mf |
Constructor Summary | |
---|---|
DeltaCollectionValuedMap(CollectionValuedMap<K,V> originalMap)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class edu.stanford.nlp.util.CollectionValuedMap |
---|
addAll, allValues, clone, deltaClone, equals, hashCode, keySet, main, removeAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeltaCollectionValuedMap(CollectionValuedMap<K,V> originalMap)
Method Detail |
---|
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)
CollectionValuedMap
put
in interface Map<K,Collection<V>>
put
in class CollectionValuedMap<K,V>
public void putAll(Map<? extends K,? extends Collection<V>> m)
CollectionValuedMap
CollectionValuedMap.addAll(Map)
instead.
putAll
in interface Map<K,Collection<V>>
putAll
in class CollectionValuedMap<K,V>
public void add(K key, V value)
CollectionValuedMap
add
in class CollectionValuedMap<K,V>
public void addAll(Map<K,V> m)
addAll
in class CollectionValuedMap<K,V>
public Collection<V> remove(Object key)
CollectionValuedMap
remove
in interface Map<K,Collection<V>>
remove
in class CollectionValuedMap<K,V>
public void removeMapping(K key, V value)
CollectionValuedMap
removeMapping
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)
CollectionValuedMap
containsValue
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()
CollectionValuedMap
size
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>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |