net.infonode.util.collection.map.base
Interface Map

All Superinterfaces:
Collection, ConstCollection, ConstMap
All Known Subinterfaces:
ChangeNotifyMap
All Known Implementing Classes:
AbstractChangeNotifyMap, ChangeNotifyMapWrapper, MapAdapter

public interface Map
extends ConstMap, Collection

A map.

Version:
$Revision: 1.4 $
Author:
$Author: jesper $

Method Summary
 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 interface net.infonode.util.collection.map.base.ConstMap
constIterator, containsKey, containsValue, get
 
Methods inherited from interface net.infonode.util.collection.Collection
clear
 
Methods inherited from interface net.infonode.util.collection.ConstCollection
isEmpty
 

Method Detail

put

java.lang.Object put(java.lang.Object key,
                     java.lang.Object value)
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

java.lang.Object remove(java.lang.Object key)
Removes a key and it's value.

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

iterator

MapIterator iterator()
Returns an iterator for this map.

Returns:
an iterator for this map