|
datastructures | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the priority queue ADT
Method Summary | |
Entry |
insert(Object key,
Object value)
Inserts a key-value pair and return the entry created. |
boolean |
isEmpty()
Returns whether the priority queue is empty. |
Entry |
min()
Returns but does not remove an entry with minimum key. |
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 Entry min() throws EmptyPriorityQueueException
EmptyPriorityQueueException
public Entry insert(Object key, Object value) throws InvalidKeyException
InvalidKeyException
public Entry removeMin() throws EmptyPriorityQueueException
EmptyPriorityQueueException
|
datastructures | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |