Package de.jungblut.datastructure
Class DistanceResult<TYPE>
- java.lang.Object
-
- de.jungblut.datastructure.DistanceResult<TYPE>
-
- Type Parameters:
TYPE- the type of the document.
public class DistanceResult<TYPE> extends java.lang.ObjectImmutable generic distance result that contains a document type object and its distance (to some artificial queried document).- Author:
- thomas.jungblut
-
-
Constructor Summary
Constructors Constructor Description DistanceResult(double distance, TYPE document)Create a newDistanceResultImplwith a distance and a document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TYPEget()doublegetDistance()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DistanceResult
public DistanceResult(double distance, TYPE document)Create a newDistanceResultImplwith a distance and a document.- Parameters:
distance- the distance.document- the document.
-
-
Method Detail
-
getDistance
public double getDistance()
- Returns:
- the distance.
-
get
public TYPE get()
- Returns:
- the document.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-