Interface ConstMap
-
- All Superinterfaces:
ConstCollection
- All Known Subinterfaces:
ChangeNotifyMap
,ConstChangeNotifyMap
,Map
- All Known Implementing Classes:
AbstractChangeNotifyMap
,AbstractConstChangeNotifyMap
,ChangeNotifyMapWrapper
,ConstChangeNotifyVectorMap
,ConstVectorMap
,MapAdapter
,SingleValueMap
public interface ConstMap extends ConstCollection
An immutable map.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstMapIterator
constIterator()
Returns an iterator for this map.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.-
Methods inherited from interface net.infonode.util.collection.ConstCollection
isEmpty
-
-
-
-
Method Detail
-
get
java.lang.Object get(java.lang.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
-
containsKey
boolean containsKey(java.lang.Object key)
Returns true if this map contains the key.- Parameters:
key
- the key- Returns:
- true if this map contains the key
-
containsValue
boolean containsValue(java.lang.Object value)
Returns true if this map contains the value.- Parameters:
value
- the value- Returns:
- true if this map contains the value
-
constIterator
ConstMapIterator constIterator()
Returns an iterator for this map.- Returns:
- an iterator for this map
-
-