|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.datastructures.heap.IntegerPriorityObject<O>
O
- Stored object type.public class IntegerPriorityObject<O>
Object for a priority queue with integer priority. Can be used in the
UpdatableHeap
, since hashcode and equality use the stored objects
only, not the priority.
Field Summary | |
---|---|
private O |
object
Stored object. |
(package private) int |
priority
Priority. |
Constructor Summary | |
---|---|
IntegerPriorityObject(int priority,
O object)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(IntegerPriorityObject<?> o)
|
boolean |
equals(Object obj)
|
Integer |
getFirst()
Get the first object - note: this may cause autoboxing, use pair.first for native pairs! |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int priority
private O object
UpdatableHeap
s Hash Map!
Constructor Detail |
---|
public IntegerPriorityObject(int priority, O object)
priority
- Priorityobject
- PayloadMethod Detail |
---|
public int getPriority()
public O getObject()
public Integer getFirst()
PairInterface
getFirst
in interface PairInterface<Integer,O>
public O getSecond()
PairInterface
getSecond
in interface PairInterface<Integer,O>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public int compareTo(IntegerPriorityObject<?> o)
compareTo
in interface Comparable<IntegerPriorityObject<?>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |