|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A Queue ADT
| Method Summary | |
void |
clear()
Clears the queue. |
java.lang.Object |
dequeue()
Dequeues an Object. |
void |
enqueue(java.lang.Object it)
Enqueues an Object. |
boolean |
isEmpty()
Returns whether or not the queue is empty. |
java.lang.Object |
peek()
Peeks at the next Object to dequeue. |
void |
resize(int sz)
Internally resizes the queue to hold at least the given number of items |
void |
shrink()
Internally shrinks the memory footprint. |
| Method Detail |
public void clear()
public void enqueue(java.lang.Object it)
it - The Object to enqueue.public java.lang.Object dequeue()
public java.lang.Object peek()
public boolean isEmpty()
public void shrink()
public void resize(int sz)
sz - The minimun number of Objects for the queue.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||