|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to respect to have a queue behaviour
| Method Summary | |
void |
clear()
Clears the queue |
java.lang.Object |
dequeue()
Removes the first element added into the queue. |
java.util.Enumeration |
elements()
Returns an @see Enumeration of the elements in the queue. |
void |
enqueue(java.lang.Object element)
Adds the specified element to the queue |
boolean |
isEmpty()
Checks if the queue is empty. |
java.lang.Object |
peek()
Returns the first element added into the queue. |
| Method Detail |
public void enqueue(java.lang.Object element)
public java.lang.Object dequeue()
null if the queue is empty
public java.lang.Object peek()
null if the queue is empty
public boolean isEmpty()
true if the queue is empty. false otherwise.
public void clear()
public java.util.Enumeration elements()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||