O
- Stored object type.public class DoublePriorityObject<O> extends Object implements Comparable<DoublePriorityObject<?>>
UpdatableHeap
, since hashcode and equality use the stored objects only, not
the priority.Modifier and Type | Field and Description |
---|---|
private O |
object
Stored object.
|
(package private) double |
priority
Priority.
|
Constructor and Description |
---|
DoublePriorityObject(double priority,
O object)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DoublePriorityObject<?> o) |
boolean |
equals(Object obj) |
O |
getObject()
Get the stored object payload
|
double |
getPriority()
Get the priority.
|
int |
hashCode() |
String |
toString() |
double priority
private O object
UpdatableHeap
s Hash Map!public DoublePriorityObject(double priority, O object)
priority
- Priorityobject
- Payloadpublic double getPriority()
public O getObject()
public int compareTo(DoublePriorityObject<?> o)
compareTo
in interface Comparable<DoublePriorityObject<?>>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.