|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Base interface for priority queue implementations.
| Method Summary | |
java.lang.Object |
deleteMin()
Removes the minimum element from the priority queue. |
java.lang.Object |
findMin()
Returns a reference to the minimum element in the priority queue |
void |
insert(java.lang.Object x)
Inserts a new object to the priority queue |
boolean |
isEmpty()
Returns true if priority queue has no elements |
void |
makeEmpty()
Erases all elements from the priority queue. |
| Method Detail |
public boolean isEmpty()
public java.lang.Object findMin()
public void insert(java.lang.Object x)
x - Object to be inserted into the priority queue.public java.lang.Object deleteMin()
public void makeEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||