Package org.khelekore.prtree
Class DistanceResult<T>
- java.lang.Object
-
- org.khelekore.prtree.DistanceResult<T>
-
- Type Parameters:
T
- The node type
public class DistanceResult<T> extends Object
Class to hold object and distance to it
-
-
Constructor Summary
Constructors Constructor Description DistanceResult(T t, double dist)
Create a new DistanceResult with a given object and distance
-
-
-
Constructor Detail
-
DistanceResult
public DistanceResult(T t, double dist)
Create a new DistanceResult with a given object and distance- Parameters:
t
- the object we are measuring the distance todist
- the actual distance to the object
-
-
Method Detail
-
get
public T get()
Get the object- Returns:
- The node object
-
getDistance
public double getDistance()
Get the distance- Returns:
- The distance to the node object
-
-