
O - Stored object type.public class IntegerPriorityObject<O> extends Object implements PairInterface<Integer,O>, Comparable<IntegerPriorityObject<?>>
UpdatableHeap, since hashcode and equality use the stored objects only, not
 the priority.| Modifier and Type | Field and Description | 
|---|---|
| private O | objectStored object. | 
| (package private) int | priorityPriority. | 
| Constructor and Description | 
|---|
| IntegerPriorityObject(int priority,
                     O object)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(IntegerPriorityObject<?> o) | 
| boolean | equals(Object obj) | 
| Integer | getFirst()Deprecated.  | 
| O | getObject()Get the stored object payload | 
| int | getPriority()Get the priority. | 
| O | getSecond()Get the second object - note: this may cause autoboxing, use pair.second for native pairs! | 
| int | hashCode() | 
| String | toString() | 
int priority
private O object
UpdatableHeaps Hash Map!public IntegerPriorityObject(int priority,
                     O object)
priority - Priorityobject - Payloadpublic int getPriority()
public O getObject()
@Deprecated public Integer getFirst()
PairInterfacegetFirst in interface PairInterface<Integer,O>public O getSecond()
PairInterfacegetSecond in interface PairInterface<Integer,O>public int compareTo(IntegerPriorityObject<?> o)
compareTo in interface Comparable<IntegerPriorityObject<?>>