|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Queue
Queue.java - a queue of Objects
| Constructor Summary | |
Queue()
|
|
| Method Summary | |
java.lang.Object |
getFront()
getFront - Remove and return the front item of the
queue. |
void |
insert(java.lang.Object item)
insert - Insert the given item in the queue rear. |
boolean |
isEmpty()
isEmpty - Return whether or not the Queue is empty |
java.lang.String |
toString()
toString - Return a String representation of the
queue. |
| 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()
isEmpty - Return whether or not the Queue is emptyboolean value - whether or not the Queue
is emptypublic void insert(java.lang.Object item)
insert - Insert the given item in the queue rear.item - an Object valuepublic java.lang.Object getFront()
getFront - Remove and return the front item of the
queue.Object valuepublic java.lang.String toString()
toString - Return a String representation of the
queue.toString in class java.lang.ObjectString value
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||