public class HeapItem extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<HeapItem>
Constructor and Description |
---|
HeapItem(int index,
double distance) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HeapItem o) |
boolean |
equals(java.lang.Object o) |
double |
getDistance() |
int |
getIndex() |
int |
hashCode() |
void |
setDistance(double distance) |
void |
setIndex(int index) |
public int getIndex()
public void setIndex(int index)
public double getDistance()
public void setDistance(double distance)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object