|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.utils.Queue
A queue.
| Constructor Summary | |
Queue()
The Constructor |
|
| 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 |
java.lang.Object[] |
getElements()
Returns an array of the elements contained in the queue. |
boolean |
isEmpty()
Checks if the queue is empty. |
java.lang.Object |
peek()
Returns the first element added into the queue. |
java.lang.String |
toString()
Returns a string representation of the queue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Queue()
| Method Detail |
public void enqueue(java.lang.Object element)
enqueue in interface Queueablepublic java.lang.Object dequeue()
null if the queue is empty.
dequeue in interface Queueablepublic java.lang.Object peek()
null if the queue is empty
peek in interface Queueablepublic boolean isEmpty()
true if the queue is empty. false otherwise.
isEmpty in interface Queueablepublic void clear()
clear in interface Queueablepublic java.util.Enumeration elements()
elements in interface Queueablepublic java.lang.Object[] getElements()
null.
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||