|
||||||||||
| 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
| Nested Class Summary | |
|---|---|
private static class |
MapAdapter.Iterator
|
| Field Summary | |
|---|---|
private java.util.HashMap |
map
|
| 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 |
| Field Detail |
|---|
private java.util.HashMap map
| 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 Mapkey - the keyvalue - the value
public java.lang.Object remove(java.lang.Object key)
Map
remove in interface Mapkey - the key
public void clear()
Collection
clear in interface Collectionpublic MapIterator iterator()
Map
iterator in interface Mappublic java.lang.Object get(java.lang.Object key)
ConstMap
get in interface ConstMapkey - the key
public boolean containsKey(java.lang.Object key)
ConstMap
containsKey in interface ConstMapkey - the key
public boolean containsValue(java.lang.Object value)
ConstMap
containsValue in interface ConstMapvalue - the value
public boolean isEmpty()
ConstCollection
isEmpty in interface ConstCollectionpublic ConstMapIterator constIterator()
ConstMap
constIterator in interface ConstMappublic int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||