
O - Stored object type.public class IntegerPriorityObject<O> extends Object implements Comparable<IntegerPriorityObject<?>>
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) int |
priority
Priority.
|
| Constructor and Description |
|---|
IntegerPriorityObject(int priority,
O object)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IntegerPriorityObject<?> o) |
boolean |
equals(Object obj) |
O |
getObject()
Get the stored object payload
|
int |
getPriority()
Get the priority.
|
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()
public int compareTo(IntegerPriorityObject<?> o)
compareTo in interface Comparable<IntegerPriorityObject<?>>Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.