public static class DeLiClu.SpatialObjectPair extends java.lang.Object implements java.lang.Comparable<DeLiClu.SpatialObjectPair>
Modifier and Type | Field and Description |
---|---|
(package private) double |
distance
The current distance.
|
(package private) SpatialEntry |
entry1
The first entry of this pair.
|
(package private) SpatialEntry |
entry2
The second entry of this pair.
|
(package private) boolean |
isExpandable
Indicates whether this pair is expandable or not.
|
Constructor and Description |
---|
SpatialObjectPair(double distance,
SpatialEntry entry1,
SpatialEntry entry2,
boolean isExpandable)
Creates a new entry with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DeLiClu.SpatialObjectPair other)
Compares this object with the specified object for order.
|
boolean |
equals(java.lang.Object obj)
equals is used in updating the heap!
|
int |
hashCode()
hashCode is used in updating the heap!
|
java.lang.String |
toString()
Returns a string representation of the object.
|
SpatialEntry entry1
SpatialEntry entry2
boolean isExpandable
double distance
public SpatialObjectPair(double distance, SpatialEntry entry1, SpatialEntry entry2, boolean isExpandable)
entry1
- the first entry of this pairentry2
- the second entry of this pairisExpandable
- if true, this pair is expandable (a pair of nodes),
otherwise this pair is not expandable (a pair of objects)public int compareTo(DeLiClu.SpatialObjectPair other)
compareTo
in interface java.lang.Comparable<DeLiClu.SpatialObjectPair>
other
- the Object to be compared.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.