|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Definition of the standard Queue
interface.
Method Summary | |
java.lang.Object |
dequeue()
Remove and return from the queue the object at the front. |
void |
enqueue(java.lang.Object o)
Insert object o at the rear of the queue. |
java.lang.Object |
front()
Return, but do not remove, the front object in the queue. |
boolean |
isEmpty()
Return a boolean value that indicates whether the queue is empty. |
int |
size()
Return the number of objects in the queue. |
Method Detail |
public void enqueue(java.lang.Object o) throws QueueFullException
o
- Object to be inserted at the rear of the queue.
QueueFullException
- If the queue is full.public java.lang.Object dequeue() throws QueueEmptyException
QueueEmptyException
- If the queue is empty.public int size()
public boolean isEmpty()
public java.lang.Object front() throws QueueEmptyException
QueueEmptyException
- If the queue is empty.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |