|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PriorityQueue
Interface describing an queue of prioritized values. This linear-like structure has values that are inserted in such a way as to allow them to be removed in increasing order.
Method Summary | |
---|---|
void |
add(java.lang.Comparable value)
Add a value to the priority queue. |
void |
clear()
Remove all the elements from the queue. |
java.lang.Comparable |
getFirst()
Fetch lowest valued (highest priority) item from queue. |
boolean |
isEmpty()
Determine if the queue is empty. |
java.lang.Comparable |
remove()
Returns the minimum value from the queue. |
int |
size()
Determine the size of the queue. |
Method Detail |
---|
java.lang.Comparable getFirst()
java.lang.Comparable remove()
void add(java.lang.Comparable value)
value
- The value to be added.boolean isEmpty()
int size()
void clear()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |