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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.Collection
clear
-
Methods inherited from interface net.infonode.util.collection.ConstCollection
isEmpty
-
Methods inherited from interface net.infonode.util.collection.map.base.ConstMap
constIterator, containsKey, containsValue, get
-
-
-
-
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 keyvalue
- 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
-
-