edu.stanford.nlp.util
Class DeltaCollectionValuedMap
java.lang.Object
edu.stanford.nlp.util.CollectionValuedMap
edu.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
DeltaCollectionValuedMap
public DeltaCollectionValuedMap(CollectionValuedMap originalMap)
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