Package com.zybooks.dsaj.pq
Class HeapAdaptablePriorityQueue.AdaptablePQEntry<K,V>
java.lang.Object
com.zybooks.dsaj.pq.AbstractPriorityQueue.PQEntry<K,V>
com.zybooks.dsaj.pq.HeapAdaptablePriorityQueue.AdaptablePQEntry<K,V>
- Type Parameters:
K
- The key type (keys must be unique and comparable)V
- The value type stored with each entry
- All Implemented Interfaces:
Entry<K,
V>
- Enclosing class:
HeapAdaptablePriorityQueue<K,
V>
protected static class HeapAdaptablePriorityQueue.AdaptablePQEntry<K,V>
extends AbstractPriorityQueue.PQEntry<K,V>
Extension of the PQEntry to include location information.
-
Constructor Summary
-
Method Summary
Methods inherited from class com.zybooks.dsaj.pq.AbstractPriorityQueue.PQEntry
getKey, getValue, setKey, setValue
-
Constructor Details
-
AdaptablePQEntry
-
-
Method Details
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int j)
-