public class OPTICSHeapEntry extends java.lang.Object implements java.lang.Comparable<OPTICSHeapEntry>
Modifier and Type | Field and Description |
---|---|
(package private) DBID |
objectID
The id of the entry.
|
(package private) DBID |
predecessorID
The id of the entry's predecessor.
|
(package private) double |
reachability
The reachability of the entry.
|
Constructor and Description |
---|
OPTICSHeapEntry(DBID objectID,
DBID predecessorID,
double reachability)
Creates a new entry in a cluster order with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OPTICSHeapEntry o) |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
DBID objectID
DBID predecessorID
double reachability
public OPTICSHeapEntry(DBID objectID, DBID predecessorID, double reachability)
objectID
- the id of the entrypredecessorID
- the id of the entry's predecessorreachability
- the reachability of the entrypublic boolean equals(java.lang.Object o)
NOTE: for the use in an UpdatableHeap, only the ID is compared!
equals
in class java.lang.Object
o
- the reference object with which to compare.true
if this object has the same attribute values as
the o argument; false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(OPTICSHeapEntry o)
compareTo
in interface java.lang.Comparable<OPTICSHeapEntry>
Copyright © 2019 ELKI Development Team. License information.