Changed Methods |
boolean insert(Object )
|
Change in signature from T to Object .
|
Adds element to the PriorityQueue in log(size) time if either the PriorityQueue is not full or not lessThan(element top()). |
Object pop()
|
Change in return type from T to Object .
|
Removes and returns the least element of the PriorityQueue in log(size) time. |
void put(Object )
|
Change in signature from T to Object .
|
Adds an Object to a PriorityQueue in log(size) time. |
Object top()
|
Change in return type from T to Object .
|
Returns the least element of the PriorityQueue in constant time. |