org.khelekore.prtree
Class DistanceResult<T>

java.lang.Object
  extended by 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
DistanceResult(T t, double dist)
          Create a new DistanceResult with a given object and distance
 
Method Summary
 T get()
          Get the object
 double getDistance()
          Get the distance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 to
dist - 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