|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.util.collection.map.MapAdapter
public class MapAdapter
Constructor Summary | |
---|---|
MapAdapter()
|
|
MapAdapter(java.util.HashMap map)
|
Method Summary | |
---|---|
void |
clear()
Removes all elements from this collection.. |
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. |
boolean |
isEmpty()
Returns true if this collection is empty. |
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. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapAdapter()
public MapAdapter(java.util.HashMap map)
Method Detail |
---|
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
Map
put
in interface Map
key
- the keyvalue
- the value
public java.lang.Object remove(java.lang.Object key)
Map
remove
in interface Map
key
- the key
public void clear()
Collection
clear
in interface Collection
public MapIterator iterator()
Map
iterator
in interface Map
public java.lang.Object get(java.lang.Object key)
ConstMap
get
in interface ConstMap
key
- the key
public boolean containsKey(java.lang.Object key)
ConstMap
containsKey
in interface ConstMap
key
- the key
public boolean containsValue(java.lang.Object value)
ConstMap
containsValue
in interface ConstMap
value
- the value
public boolean isEmpty()
ConstCollection
isEmpty
in interface ConstCollection
public ConstMapIterator constIterator()
ConstMap
constIterator
in interface ConstMap
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |