|
BRUtil - Making Java a Kinder, Gentler, Place to be. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--brutil.AbstractListing
|
+--brutil.AbstractQueue
| Fields inherited from class brutil.AbstractListing |
list |
| Constructor Summary | |
AbstractQueue()
|
|
| Method Summary | |
java.lang.Object |
dequeue()
Remove an object from the front of the Queue. |
void |
enqueue(java.lang.Object elt)
Add an object to the back of the Queue. |
java.lang.Object |
peek()
Returns the first object in the Queue without removing it. |
| Methods inherited from class brutil.AbstractListing |
clear, isEmpty, listFactory, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface brutil.Queue |
isEmpty |
| Methods inherited from interface brutil.Collection |
clear, size |
| Constructor Detail |
public AbstractQueue()
| Method Detail |
public void enqueue(java.lang.Object elt)
enqueue in interface Queueelt - The object to be added.public java.lang.Object dequeue()
dequeue in interface QueueNoSuchElementException - if this Queue is Empty.public java.lang.Object peek()
peek in interface QueueNoSuchElementException - if this Queue is Empty
|
BRUtil - Making Java a Kinder, Gentler, Place to be. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||