|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPQ
Priority Queue interface
| Method Summary | |
|---|---|
void |
add(java.lang.Comparable c)
add to the queue |
void |
clear()
Empty the queue |
java.lang.Comparable |
inspectLeast()
look but don't remove |
boolean |
isEmpty()
is the queue empty? |
java.lang.Comparable |
removeLeast()
remove from the queue |
int |
size()
Returns the size of the queue |
| Method Detail |
|---|
void add(java.lang.Comparable c)
c - the object to addjava.lang.Comparable removeLeast()
java.lang.Comparable inspectLeast()
boolean isEmpty()
int size()
void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||