Package com.zybooks.dsaj.pq
Class AbstractPriorityQueue.PQEntry<K,V> 
java.lang.Object
com.zybooks.dsaj.pq.AbstractPriorityQueue.PQEntry<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> 
- Direct Known Subclasses:
 HeapAdaptablePriorityQueue.AdaptablePQEntry
- Enclosing class:
 AbstractPriorityQueue<K,V> 
A concrete implementation of the Entry interface to be used within
 a PriorityQueue implementation.
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
PQEntry
Creates a new PQEntry- Parameters:
 key- The new entry's keyvalue- The new entry's value
 
 - 
 - 
Method Details
- 
getKey
Return the entry's key - 
getValue
Return the entry's value - 
setKey
Set the entry's key- Parameters:
 key- the new key
 - 
setValue
Set the entry's value- Parameters:
 value- the new value
 
 -