package structures;

public class HeapPair<T extends Comparable<T>> extends Pair<PairingHeap<T>, PNode<T>> implements IReference<T> {

	
	public HeapPair(PairingHeap<T> fst, PNode<T> snd) {
		super(fst, snd);
	}

	@Override
	public T lookupKey() {
		return snd().getKey();
	}

	public void decreaseKey(T newKey) {
		fst().m_queue = snd().decreaseKey(fst().m_queue, newKey);
		
	}

	public boolean isValid() {
		return snd().isValid();
	}



}
