| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Map interface. A map stores key/value pairs. In our implementations, duplicate keys are not allowed.
| Inner Class Summary | |
static interface | 
Map.Entry
The interface used to access the key/value pairs in a map.  | 
| Method Summary | |
 void | 
clear()
Removes all key value pairs from the map.  | 
 boolean | 
containsKey(java.lang.Object key)
Tests if this map contains a given key.  | 
 Set | 
entrySet()
Return a set of Map.Entry objects corresponding to the key/value pairs in the map.  | 
 java.lang.Object | 
get(java.lang.Object key)
Returns the value in the map associated with the key.  | 
 boolean | 
isEmpty()
Tests if this map is empty.  | 
 Set | 
keySet()
Returns the keys in the map.  | 
 java.lang.Object | 
put(java.lang.Object key,
    java.lang.Object value)
Adds the key value pair to the map, overriding the original value if the key was already present.  | 
 java.lang.Object | 
remove(java.lang.Object key)
Remove the key and its value from the map.  | 
 int | 
size()
Returns the number of keys in this map.  | 
 Collection | 
values()
Returns the values in the map.  | 
| Method Detail | 
public int size()
public boolean isEmpty()
public boolean containsKey(java.lang.Object key)
key - the key to search for.public java.lang.Object get(java.lang.Object key)
key - the key to search for.
public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
key - the key to insert.value - the value to insert.public java.lang.Object remove(java.lang.Object key)
key - the key to remove.public void clear()
public Set keySet()
public Collection values()
public Set entrySet()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||