|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPriorityQueue
public abstract class PriorityQueue
A base class for priority queues.
Constructor Summary | |
---|---|
PriorityQueue()
|
Method Summary | |
---|---|
abstract void |
clear()
Resets the priority queue. |
abstract int |
size()
Returns the number of elements in the queue. |
void |
validateHeapProperty()
Throws an exception if the heap property is not satisfied. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PriorityQueue()
Method Detail |
---|
public void validateHeapProperty() throws Exception
Exception
public abstract int size()
public abstract void clear()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |