public class NeighborData<T> extends Object implements Comparable<NeighborData<T>>
| Constructor and Description |
|---|
NeighborData() |
NeighborData(NeighborData<T> element,
double distance) |
NeighborData(T element,
org.locationtech.geowave.core.index.ByteArray id,
double distance) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NeighborData<T> otherNNData) |
boolean |
equals(Object obj) |
double |
getDistance() |
T |
getElement() |
org.locationtech.geowave.core.index.ByteArray |
getId() |
int |
hashCode() |
void |
setDistance(double distance) |
protected void |
setElement(T neighbor) |
protected void |
setId(org.locationtech.geowave.core.index.ByteArray id) |
String |
toString() |
public NeighborData()
public NeighborData(T element, org.locationtech.geowave.core.index.ByteArray id, double distance)
public NeighborData(NeighborData<T> element, double distance)
public org.locationtech.geowave.core.index.ByteArray getId()
protected void setId(org.locationtech.geowave.core.index.ByteArray id)
public double getDistance()
public void setDistance(double distance)
public T getElement()
protected void setElement(T neighbor)
public int compareTo(NeighborData<T> otherNNData)
compareTo in interface Comparable<NeighborData<T>>Copyright © 2013–2022. All rights reserved.