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