net.infonode.util.collection.notifymap
Class ChangeNotifyMapWrapper

java.lang.Object
  extended by net.infonode.util.collection.notifymap.AbstractConstChangeNotifyMap
      extended by net.infonode.util.collection.notifymap.AbstractChangeNotifyMap
          extended by net.infonode.util.collection.notifymap.ChangeNotifyMapWrapper
All Implemented Interfaces:
Collection, ConstCollection, ConstMap, Map, ChangeNotifyMap, ConstChangeNotifyMap

public class ChangeNotifyMapWrapper
extends AbstractChangeNotifyMap


Nested Class Summary
private  class ChangeNotifyMapWrapper.Iterator
           
 
Field Summary
private  Map map
           
 
Constructor Summary
ChangeNotifyMapWrapper(Map map)
           
 
Method Summary
 void clear()
          Removes all elements from this collection..
 boolean containsKey(java.lang.Object key)
          Returns true if this map contains the key.
 boolean containsValue(java.lang.Object value)
          Returns true if this map contains the value.
 java.lang.Object get(java.lang.Object key)
          Returns the value associated with the key.
 Map getMap()
           
 boolean isEmpty()
          Returns true if this collection is empty.
 MapIterator iterator()
          Returns an iterator for this map.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Associate a key with a value.
 java.lang.Object remove(java.lang.Object key)
          Removes a key and it's value.
 
Methods inherited from class net.infonode.util.collection.notifymap.AbstractChangeNotifyMap
constIterator
 
Methods inherited from class net.infonode.util.collection.notifymap.AbstractConstChangeNotifyMap
fireEntriesChanged, fireEntryChanged, fireEntryRemoved, firstListenerAdded, getChangeSignal, getChangeSignalInternal, lastListenerRemoved, listenerAdded, listenerRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.infonode.util.collection.notifymap.ConstChangeNotifyMap
getChangeSignal
 

Field Detail

map

private Map map
Constructor Detail

ChangeNotifyMapWrapper

public ChangeNotifyMapWrapper(Map map)
Method Detail

getMap

public Map getMap()

get

public java.lang.Object get(java.lang.Object key)
Description copied from interface: ConstMap
Returns the value associated with the key.

Parameters:
key - the key
Returns:
the value associated with the key, null if no value is associated with the key

containsKey

public boolean containsKey(java.lang.Object key)
Description copied from interface: ConstMap
Returns true if this map contains the key.

Parameters:
key - the key
Returns:
true if this map contains the key

containsValue

public boolean containsValue(java.lang.Object value)
Description copied from interface: ConstMap
Returns true if this map contains the value.

Parameters:
value - the value
Returns:
true if this map contains the value

isEmpty

public boolean isEmpty()
Description copied from interface: ConstCollection
Returns true if this collection is empty.

Returns:
true if this collection is empty

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Description copied from interface: Map
Associate a key with a value. This will overwrite any existing association.

Parameters:
key - the key
value - the value
Returns:
the old value associated with this key, null if no value existed

remove

public java.lang.Object remove(java.lang.Object key)
Description copied from interface: Map
Removes a key and it's value.

Parameters:
key - the key
Returns:
the value associated with the key, null if no value existed

clear

public void clear()
Description copied from interface: Collection
Removes all elements from this collection..


iterator

public MapIterator iterator()
Description copied from interface: Map
Returns an iterator for this map.

Returns:
an iterator for this map