net.infonode.util.collection.map.base

Interface Map

public interface Map extends ConstMap, Collection

A map.

Version: $Revision: 1.4 $

Author: $Author: jesper $

Method Summary
MapIteratoriterator()
Returns an iterator for this map.
Objectput(Object key, Object value)
Associate a key with a value.
Objectremove(Object key)
Removes a key and it's value.

Method Detail

iterator

public MapIterator iterator()
Returns an iterator for this map.

Returns: an iterator for this map

put

public Object put(Object key, 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

public Object remove(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