21 lines
459 B
Java
21 lines
459 B
Java
package priorityqueue;
|
|
|
|
import priorityqueue.Entry;
|
|
import priorityqueue.PriorityQueue;
|
|
|
|
import exceptions.InvalidKeyException;
|
|
|
|
/**
|
|
* Created with MONSTER.
|
|
* User: xgiovio
|
|
* Date: 11/05/2014
|
|
* Time: 14:51
|
|
*/
|
|
public interface AdaptablePriorityQueue<K,V> extends PriorityQueue<K,V> {
|
|
|
|
public Entry<K,V> remove(Entry<K,V> e);
|
|
public K replaceKey(Entry<K,V> e, K key) throws InvalidKeyException;
|
|
public V replaceValue(Entry<K,V> e, V value);
|
|
|
|
}
|