| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjegg.impl.PriorityQueue
A queue for objects that can be extracted from the queue in order of priority.
This container is not synchronized.
| Constructor Summary | |
PriorityQueue()
 | 
|
| Method Summary | |
 void | 
add(Priority p,
    java.lang.Object o)
Add a prioritized object to the queue.  | 
 void | 
clear()
Empty the queue.  | 
 boolean | 
isEmpty()
Return whether or not the queue is empty.  | 
 java.lang.Object | 
next()
Return the next object on the queue in order of priority.  | 
 java.lang.Object | 
next(Priority p)
Return the next object of a specific priority.  | 
 int | 
size()
return the number of objects remaining on the queue.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public PriorityQueue()
| Method Detail | 
public void add(Priority p,
                java.lang.Object o)
p - the priority of the object.o - the object to add to the queue.public java.lang.Object next()
public java.lang.Object next(Priority p)
p - the priority of the next object to return.
public int size()
public void clear()
public boolean isEmpty()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||