|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectredblacktreeproject.Queue
public class Queue
Constructor Summary | |
---|---|
Queue()
Create an empty queue. |
Method Summary | |
---|---|
java.lang.Object |
deQueue()
Object method removes and returns reference in front of queue. |
void |
enQueue(java.lang.Object x)
Add an object reference to the rear of the queue. |
java.lang.Object |
getFront()
Method getFront returns the front of the queue without removing it. |
boolean |
isEmpty()
Boolean method returns true on empty queue, false otherwise. |
static void |
main(java.lang.String[] a)
main is for testing the queue routines. |
java.lang.String |
toString()
The toString method returns a String representation of the current queue contents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Queue()
Method Detail |
---|
public boolean isEmpty()
public java.lang.Object deQueue()
public void enQueue(java.lang.Object x)
x
- is an object to be added to the rear of the queue.public java.lang.Object getFront()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] a)
a
- Command line parameters are not used.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |