|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.index.tree.DistanceEntry<D,E>
E - the type of Entry used in the indexD - the type of Distance usedpublic class DistanceEntry<D extends Distance<D>,E extends Entry>

Helper class: encapsulates an entry in an Index and a distance value belonging to this entry.
| Field Summary | |
|---|---|
private D |
distance
The distance value belonging to the entry. |
private E |
entry
The entry of the Index. |
private int |
index
The index of the entry in its parent's child array. |
| Constructor Summary | |
|---|---|
DistanceEntry(E entry,
D distance,
int index)
Constructs a new DistanceEntry object with the specified parameters. |
|
| Method Summary | |
|---|---|
int |
compareTo(DistanceEntry<D,E> o)
Compares this object with the specified object for order. |
D |
getDistance()
Returns the distance value belonging to the entry. |
E |
getEntry()
Returns the entry of the Index. |
int |
getIndex()
Returns the index of this entry in its parents child array. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private E extends Entry entry
private D extends Distance<D> distance
private int index
| Constructor Detail |
|---|
public DistanceEntry(E entry,
D distance,
int index)
entry - the entry of the Indexdistance - the distance value belonging to the entryindex - the index of the entry in its parent' child array| Method Detail |
|---|
public E getEntry()
public D getDistance()
public int getIndex()
public int compareTo(DistanceEntry<D,E> o)
compareTo in interface Comparable<DistanceEntry<D extends Distance<D>,E extends Entry>>o - the Object to be compared.
ClassCastException - if the specified object's type prevents it from
being compared to this Object.public String toString()
toString in class Object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||