|
|||||||||
| 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. |
Object |
dequeue()
Dequeues one element from this queue. |
void |
enqueue(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 Object dequeue()
throws NoSuchElementException
NoSuchElementException - if this queue is emptypublic void enqueue(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 | ||||||||