Interface PriorityPair<T,P extends java.lang.Comparable<? super P>>

Type Parameters:
T - the item type of the pair.
P - the priority type.
All Superinterfaces:
java.lang.Comparable<PriorityPair<T,P>>

public interface PriorityPair<T,P extends java.lang.Comparable<? super P>>
extends java.lang.Comparable<PriorityPair<T,P>>

A utility interface for the Updatable Priority Queue ADT to work with an item and its priority simultaneously.


Method Summary
 T item()
           
 P priority()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

item

T item()

priority

P priority()