public interface AdaptablePriorityQueue<K,V> extends PriorityQueue<K,V>
void remove(Entry<K,V> entry) throws IllegalArgumentException
entry
- an entry of this priority queueIllegalArgumentException
- if e is not a valid entry for the priority queue.void replaceKey(Entry<K,V> entry, K key) throws IllegalArgumentException
entry
- an entry of this priority queuekey
- the new keyIllegalArgumentException
- if e is not a valid entry for the priority queue.void replaceValue(Entry<K,V> entry, V value) throws IllegalArgumentException
entry
- an entry of this priority queuevalue
- the new valueIllegalArgumentException
- if e is not a valid entry for the priority queue.