|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Dispenser is a collection of entries with a distinguished entry, called the accessible entry, that can be examined or removed.
Method Summary | |
void |
add(java.lang.Object dat)
disp.add(dat) adds dat to disp. |
void |
clear()
disp.clear() removes all entries from disp. |
java.lang.Object |
data()
disp.data() returns the accessible entry of disp. |
java.util.Iterator |
iterator()
disp.iterator() returns an iterator for the entries of disp. |
boolean |
more()
disp.more() returns true if there are more entries in disp. |
void |
remove()
disp.remove() removes the accessible entry from disp. |
int |
size()
disp.size() returns the number of entries in disp. |
Method Detail |
public boolean more()
public int size()
public void add(java.lang.Object dat)
public java.lang.Object data()
Precondition: disp.more() is true.
public void clear()
public void remove()
Precondition: disp.more() is true.
public java.util.Iterator iterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |