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)
Mappublic java.lang.Object remove(java.lang.Object key)
Mappublic void clear()
Collectionclear in interface Collectionpublic MapIterator iterator()
Mappublic java.lang.Object get(java.lang.Object key)
ConstMappublic boolean containsKey(java.lang.Object key)
ConstMapcontainsKey in interface ConstMapkey - the keypublic boolean containsValue(java.lang.Object value)
ConstMapcontainsValue in interface ConstMapvalue - the valuepublic boolean isEmpty()
ConstCollectionisEmpty in interface ConstCollectionpublic ConstMapIterator constIterator()
ConstMapconstIterator in interface ConstMappublic int size()