public class Retrieval
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
DocumentReference |
docRef
A reference to the Document being retrieved
|
double |
score
The score given to this document by a retrieval engine.
|
Constructor and Description |
---|
Retrieval(DocumentReference docRef,
double score)
Create a retrieval with these values
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object obj)
Compares this Retrieval to another for sorting from best to worst.
|
public DocumentReference docRef
public double score
public Retrieval(DocumentReference docRef, double score)
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- The Retrieval to compare with.Arrays.sort(int[])