T
- the item type of the pair.P
- the priority type.public class DefaultPriorityPairImplementation<T,P extends java.lang.Comparable<? super P>> extends java.lang.Object implements PriorityPair<T,P>
Constructor and Description |
---|
DefaultPriorityPairImplementation(T item,
P priority) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PriorityPair<T,P> rhs) |
T |
item() |
P |
priority() |
java.lang.String |
toString() |
public T item()
item
in interface PriorityPair<T,P extends java.lang.Comparable<? super P>>
public P priority()
priority
in interface PriorityPair<T,P extends java.lang.Comparable<? super P>>
public int compareTo(PriorityPair<T,P> rhs)
compareTo
in interface java.lang.Comparable<PriorityPair<T,P extends java.lang.Comparable<? super P>>>
public java.lang.String toString()
toString
in class java.lang.Object