|
BRUtil - Making Java a Kinder, Gentler, Place to be. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Used for associating (key, value) pairs of objects. Pairs (Entries) entered with put(k,v), accessed with get(k), and removed by remove(k). Many possible implementations.
| Method Summary | |
boolean |
containsKey(java.lang.Object key)
Checks to see if the specified key object is in the Map. |
java.lang.Object |
get(java.lang.Object key)
Returns the value to which the specified key is mapped in this Map. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps the specified key to the specified value in this Map. |
java.lang.Object |
remove(java.lang.Object key)
Removes the key (and its corresponding value) from this Map. |
| Methods inherited from interface brutil.Collection |
clear, isEmpty, size |
| Method Detail |
public java.lang.Object get(java.lang.Object key)
key - a key in the Map.put(Object, Object)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
key - the Map key.data - the value.NullPointerException - if key is null.get(Object)public java.lang.Object remove(java.lang.Object key)
key - the key that needs to be removed.public boolean containsKey(java.lang.Object key)
key - the key to be found.
|
BRUtil - Making Java a Kinder, Gentler, Place to be. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||