|
datastructures | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for a dictionary storing (key-value) pairs.
Method Summary | |
Iterator |
entries()
Returns an iterator containing all the entries in the dictionary. |
Entry |
find(Object key)
Returns an entry containing the given key, or null if no such entry exists. |
Iterator |
findAll(Object key)
Returns an iterator containing all the entries containing the given key, or an empty iterator if no such entries exist. |
Entry |
insert(Object key,
Object value)
Inserts an item into the dictionary. |
boolean |
isEmpty()
Returns whether the dictionary is empty. |
Entry |
remove(Entry e)
Removes and returns the given entry from the dictionary. |
int |
size()
Returns the number of entries in the dictionary. |
Method Detail |
public int size()
public boolean isEmpty()
public Entry find(Object key) throws InvalidKeyException
InvalidKeyException
public Iterator findAll(Object key) throws InvalidKeyException
InvalidKeyException
public Entry insert(Object key, Object value) throws InvalidKeyException
InvalidKeyException
public Entry remove(Entry e) throws InvalidEntryException
InvalidEntryException
public Iterator entries()
|
datastructures | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |