public class MapAdapter extends java.lang.Object implements Map
Constructor and Description |
---|
MapAdapter() |
MapAdapter(java.util.HashMap map) |
Modifier and Type | Method and Description |
---|---|
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() |
public MapAdapter()
public MapAdapter(java.util.HashMap map)
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
Map
public java.lang.Object remove(java.lang.Object key)
Map
public void clear()
Collection
clear
in interface Collection
public MapIterator iterator()
Map
public java.lang.Object get(java.lang.Object key)
ConstMap
public boolean containsKey(java.lang.Object key)
ConstMap
containsKey
in interface ConstMap
key
- the keypublic boolean containsValue(java.lang.Object value)
ConstMap
containsValue
in interface ConstMap
value
- the valuepublic boolean isEmpty()
ConstCollection
isEmpty
in interface ConstCollection
public ConstMapIterator constIterator()
ConstMap
constIterator
in interface ConstMap
public int size()