|
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 | |||||||
java.lang.Object | +--brutil.AbstractMap
| Field Summary | |
protected Set |
set
|
| Constructor Summary | |
AbstractMap()
|
|
| Method Summary | |
void |
clear()
Clears out the contents of the Collection (optional operation) |
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. |
boolean |
isEmpty()
Returns true if the Collection contains no elements, false otherwise |
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. |
protected abstract Set |
setFactory()
This method is abstract, to be replaced by subclasses to provide the correct implementation. |
int |
size()
Returns the size of the given Collection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Set set
| Constructor Detail |
public AbstractMap()
| Method Detail |
protected abstract Set setFactory()
public java.lang.Object get(java.lang.Object key)
get in interface Mapkey - a key in the Map.put(Object, Object)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface Mapkey - the Map key.data - the value.NullPointerException - if key is null.get(Object)public java.lang.Object remove(java.lang.Object key)
remove in interface Mapkey - the key that needs to be removed.public boolean containsKey(java.lang.Object key)
containsKey in interface Mapkey - the key to be found.public int size()
size in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic void clear()
clear in interface Collection
|
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 | |||||||