|
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 | |||||||
| Method Summary | |
java.lang.Object |
dequeue()
Remove an object from the front of the Queue. |
void |
enqueue(java.lang.Object o)
Add an object to the back of the Queue. |
boolean |
isEmpty()
Returns true if the Collection contains no elements, false otherwise |
java.lang.Object |
peek()
Returns the first object in the Queue without removing it. |
| Methods inherited from interface brutil.Collection |
clear, size |
| Method Detail |
public void enqueue(java.lang.Object o)
o - The object to be added.public java.lang.Object dequeue()
java.util.NoSuchElementException - if this Queue is Empty.public boolean isEmpty()
CollectionisEmpty in interface Collectiontrue if the Queue is empty,
false otherwise.public java.lang.Object peek()
java.util.NoSuchElementException - 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 | |||||||