
O - Stored object type.public class DoublePriorityObject<O> extends Object implements PairInterface<Double,O>, Comparable<DoublePriorityObject<?>>
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) double | priorityPriority. | 
| Constructor and Description | 
|---|
| DoublePriorityObject(double priority,
                    O object)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(DoublePriorityObject<?> o) | 
| boolean | equals(Object obj) | 
| Double | getFirst()Deprecated.  | 
| O | getObject()Get the stored object payload | 
| double | 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() | 
double priority
private O object
UpdatableHeaps Hash Map!public DoublePriorityObject(double priority,
                    O object)
priority - Priorityobject - Payloadpublic double getPriority()
public O getObject()
@Deprecated public Double getFirst()
PairInterfacegetFirst in interface PairInterface<Double,O>public O getSecond()
PairInterfacegetSecond in interface PairInterface<Double,O>public int compareTo(DoublePriorityObject<?> o)
compareTo in interface Comparable<DoublePriorityObject<?>>