net.infonode.util.collection.map.base

Interface ConstMap

public interface ConstMap extends ConstCollection

An immutable map.

Version: $Revision: 1.2 $

Author: $Author: johan $

Method Summary
ConstMapIteratorconstIterator()
Returns an iterator for this map.
booleancontainsKey(Object key)
Returns true if this map contains the key.
booleancontainsValue(Object value)
Returns true if this map contains the value.
Objectget(Object key)
Returns the value associated with the key.

Method Detail

constIterator

public ConstMapIterator constIterator()
Returns an iterator for this map.

Returns: an iterator for this map

containsKey

public boolean containsKey(Object key)
Returns true if this map contains the key.

Parameters: key the key

Returns: true if this map contains the key

containsValue

public boolean containsValue(Object value)
Returns true if this map contains the value.

Parameters: value the value

Returns: true if this map contains the value

get

public Object get(Object key)
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