|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.CollectionValuedMap
edu.stanford.nlp.util.DeltaCollectionValuedMap
public class DeltaCollectionValuedMap
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 |
---|
mf |
Constructor Summary | |
---|---|
DeltaCollectionValuedMap(CollectionValuedMap originalMap)
|
Method Summary | |
---|---|
void |
add(Object key,
Object value)
Adds the value to the Collection mapped to by the key. |
void |
addAll(Map 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 |
entrySet()
This is cheap. |
Collection |
get(Object key)
|
boolean |
isEmpty()
|
Collection |
put(Object key,
Collection value)
Replaces current Collection mapped to key with the specified Collection. |
void |
putAll(Map m)
Unsupported. |
Collection |
remove(Object key)
Removes the mapping associated with this key from this Map. |
void |
removeMapping(Object key,
Object 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 |
values()
Unsupported. |
Methods inherited from class edu.stanford.nlp.util.CollectionValuedMap |
---|
allValues, clone, deltaClone, equals, hashCode, keySet, main, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeltaCollectionValuedMap(CollectionValuedMap originalMap)
Method Detail |
---|
public Collection get(Object key)
get
in interface Map
get
in class CollectionValuedMap
public Collection put(Object key, Collection value)
CollectionValuedMap
put
in class CollectionValuedMap
public void putAll(Map m)
CollectionValuedMap
CollectionValuedMap.addAll(Map)
instead.
putAll
in interface Map
putAll
in class CollectionValuedMap
public void add(Object key, Object value)
CollectionValuedMap
add
in class CollectionValuedMap
public void addAll(Map m)
addAll
in class CollectionValuedMap
m
- public Collection remove(Object key)
CollectionValuedMap
remove
in interface Map
remove
in class CollectionValuedMap
public void removeMapping(Object key, Object value)
CollectionValuedMap
removeMapping
in class CollectionValuedMap
key
- the key to the Collection to remove the value fromvalue
- the value to removepublic boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in class CollectionValuedMap
public boolean containsValue(Object value)
CollectionValuedMap
containsValue
in interface Map
containsValue
in class CollectionValuedMap
public void clear()
clear
in interface Map
clear
in class CollectionValuedMap
public boolean isEmpty()
isEmpty
in interface Map
isEmpty
in class CollectionValuedMap
public int size()
CollectionValuedMap
size
in interface Map
size
in class CollectionValuedMap
public Collection values()
CollectionValuedMap
values
in interface Map
values
in class CollectionValuedMap
public Set entrySet()
entrySet
in interface Map
entrySet
in class CollectionValuedMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |