|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.forester.datastructures.Queue
public class Queue
| Constructor Summary | |
|---|---|
Queue()
This created a new, empty Queue object. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all elements from this queue. |
java.lang.Object |
dequeue()
Dequeues one element from this queue. |
void |
enqueue(java.lang.Object element)
Adds Object element to thisqueue. |
boolean |
isEmpty()
Returns whether or not this queue is empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Queue()
| Method Detail |
|---|
public void clear()
public java.lang.Object dequeue()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if this queue is emptypublic void enqueue(java.lang.Object element)
element - the Object to be enqueuedpublic boolean isEmpty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||