Package net.infonode.util.collection.map
Class MapAdapter
java.lang.Object
net.infonode.util.collection.map.MapAdapter
- All Implemented Interfaces:
Collection
,ConstCollection
,ConstMap
,Map
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Removes all elements from this collection..Returns 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.boolean
isEmpty()
Returns true if this collection is empty.iterator()
Returns an iterator for this map.Associate a key with a value.Removes a key and it's value.int
size()
-
Constructor Details
-
MapAdapter
public MapAdapter() -
MapAdapter
-
-
Method Details
-
put
Description copied from interface:Map
Associate a key with a value. This will overwrite any existing association. -
remove
Description copied from interface:Map
Removes a key and it's value. -
clear
public void clear()Description copied from interface:Collection
Removes all elements from this collection..- Specified by:
clear
in interfaceCollection
-
iterator
Description copied from interface:Map
Returns an iterator for this map. -
get
Description copied from interface:ConstMap
Returns the value associated with the key. -
containsKey
Description copied from interface:ConstMap
Returns true if this map contains the key.- Specified by:
containsKey
in interfaceConstMap
- Parameters:
key
- the key- Returns:
- true if this map contains the key
-
containsValue
Description copied from interface:ConstMap
Returns true if this map contains the value.- Specified by:
containsValue
in interfaceConstMap
- Parameters:
value
- the value- Returns:
- true if this map contains the value
-
isEmpty
public boolean isEmpty()Description copied from interface:ConstCollection
Returns true if this collection is empty.- Specified by:
isEmpty
in interfaceConstCollection
- Returns:
- true if this collection is empty
-
constIterator
Description copied from interface:ConstMap
Returns an iterator for this map.- Specified by:
constIterator
in interfaceConstMap
- Returns:
- an iterator for this map
-
size
public int size()
-