|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a queue.
Method Summary | |
java.lang.Object |
dequeue()
Returns and removes the object at the head of the queue. |
void |
enqueue(java.lang.Object x)
Adds an object to the tail of the queue. |
boolean |
isEmpty()
Returns true if the queue is empty,
false otherwise. |
Method Detail |
public void enqueue(java.lang.Object x)
x
- Object to be enqueued.public java.lang.Object dequeue()
public boolean isEmpty()
true
if the queue is empty,
false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |