|
|||||||||
| 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 |
|---|
java.util.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(java.util.Map<K,V> m)
Adds all of the mappings in m to this CollectionValuedMap. |
void |
clear()
This is more expensive than normal. |
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
Unsupported. |
java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>> |
entrySet()
This is cheap. |
java.util.Collection<V> |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
java.util.Collection<V> |
put(K key,
java.util.Collection<V> value)
Replaces current Collection mapped to key with the specified Collection. |
void |
putAll(java.util.Map<? extends K,? extends java.util.Collection<V>> m)
Unsupported. |
java.util.Collection<V> |
remove(java.lang.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. |
java.util.Collection<java.util.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 java.util.Collection<V> get(java.lang.Object key)
get in interface java.util.Map<K,java.util.Collection<V>>get in class CollectionValuedMap<K,V>
public java.util.Collection<V> put(K key,
java.util.Collection<V> value)
CollectionValuedMap
put in interface java.util.Map<K,java.util.Collection<V>>put in class CollectionValuedMap<K,V>public void putAll(java.util.Map<? extends K,? extends java.util.Collection<V>> m)
CollectionValuedMapCollectionValuedMap.addAll(Map) instead.
putAll in interface java.util.Map<K,java.util.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(java.util.Map<K,V> m)
addAll in class CollectionValuedMap<K,V>public java.util.Collection<V> remove(java.lang.Object key)
CollectionValuedMap
remove in interface java.util.Map<K,java.util.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(java.lang.Object key)
containsKey in interface java.util.Map<K,java.util.Collection<V>>containsKey in class CollectionValuedMap<K,V>public boolean containsValue(java.lang.Object value)
CollectionValuedMap
containsValue in interface java.util.Map<K,java.util.Collection<V>>containsValue in class CollectionValuedMap<K,V>public void clear()
clear in interface java.util.Map<K,java.util.Collection<V>>clear in class CollectionValuedMap<K,V>public boolean isEmpty()
isEmpty in interface java.util.Map<K,java.util.Collection<V>>isEmpty in class CollectionValuedMap<K,V>public int size()
CollectionValuedMap
size in interface java.util.Map<K,java.util.Collection<V>>size in class CollectionValuedMap<K,V>public java.util.Collection<java.util.Collection<V>> values()
values in interface java.util.Map<K,java.util.Collection<V>>values in class CollectionValuedMap<K,V>public java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>> entrySet()
entrySet in interface java.util.Map<K,java.util.Collection<V>>entrySet in class CollectionValuedMap<K,V>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||