edu.stanford.nlp.util
Class DeltaCollectionValuedMap

java.lang.Object
  extended byedu.stanford.nlp.util.CollectionValuedMap
      extended byedu.stanford.nlp.util.DeltaCollectionValuedMap
All Implemented Interfaces:
Map

public class DeltaCollectionValuedMap
extends CollectionValuedMap

User: Teg Grenager Date: Jan 14, 2004 Time: 10:40:57 AM


Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
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)
           
 Set entrySet()
          This is cheap.
 Object get(Object key)
           
 boolean isEmpty()
           
 Object put(Object key, Object value)
           
 void putAll(Map m)
           
 Object remove(Object key)
           
 void removeMapping(Object key, Object value)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class edu.stanford.nlp.util.CollectionValuedMap
clone, deltaClone, equals, hashCode, keySet, main, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeltaCollectionValuedMap

public DeltaCollectionValuedMap(CollectionValuedMap originalMap)
Method Detail

get

public Object get(Object key)
Specified by:
get in interface Map
Overrides:
get in class CollectionValuedMap
Parameters:
key -
Returns:
the Collection mapped to by key.

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class CollectionValuedMap

putAll

public void putAll(Map m)
Specified by:
putAll in interface Map
Overrides:
putAll in class CollectionValuedMap

add

public void add(Object key,
                Object value)
Description copied from class: CollectionValuedMap
Adds the value to the Collection mapped to by the key.

Overrides:
add in class CollectionValuedMap
Parameters:
key -
value -

addAll

public void addAll(Map m)
Adds all of the mappings in m to this CollectionValuedMap. If m is a CollectionValuedMap, it will behave strangely. Use the constructor instead.

Overrides:
addAll in class CollectionValuedMap
Parameters:
m -

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class CollectionValuedMap

removeMapping

public void removeMapping(Object key,
                          Object value)
Overrides:
removeMapping in class CollectionValuedMap

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map
Overrides:
containsKey in class CollectionValuedMap

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class CollectionValuedMap

clear

public void clear()
This is more expensive than normal.

Specified by:
clear in interface Map
Overrides:
clear in class CollectionValuedMap

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map
Overrides:
isEmpty in class CollectionValuedMap

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class CollectionValuedMap

values

public Collection values()
Specified by:
values in interface Map
Overrides:
values in class CollectionValuedMap

entrySet

public Set entrySet()
This is cheap.

Specified by:
entrySet in interface Map
Overrides:
entrySet in class CollectionValuedMap
Returns:
a set view of the mappings contained in this map.


Stanford NLP Group