public interface AdaptablePriorityQueue<K,V> extends PriorityQueue<K,V>
Modifier and Type | Method and Description |
---|---|
Entry<K,V> |
remove(Entry<K,V> e)
Removes and returns an entry from the priority queue.
|
K |
replaceKey(Entry<K,V> e,
K key)
Replaces the key of an entry and returns the old key.
|
V |
replaceValue(Entry<K,V> e,
V value)
Replaces the value of an entry and returns the old value.
|
K replaceKey(Entry<K,V> e, K key) throws InvalidKeyException
InvalidKeyException