Class DistanceResult<T>

  • Type Parameters:
    T - The node type

    public class DistanceResult<T>
    extends Object
    Class to hold object and distance to it
    • 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