|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for the priority queue ADT
| Method Summary | |
container.Entry |
insert(java.lang.Object key,
java.lang.Object value)
Inserts a key-value pair and return the entry created. |
boolean |
isEmpty()
Returns whether the priority queue is empty. |
container.Entry |
min()
Returns but does not remove an entry with minimum key. |
container.Entry |
removeMin()
Removes and returns an entry with minimum key. |
int |
size()
Returns the number of items in the priority queue. |
| Method Detail |
public int size()
public boolean isEmpty()
public container.Entry min()
throws EmptyPriorityQueueException
EmptyPriorityQueueException
public container.Entry insert(java.lang.Object key,
java.lang.Object value)
throws InvalidKeyException
InvalidKeyException
public container.Entry removeMin()
throws EmptyPriorityQueueException
EmptyPriorityQueueException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||