public class ScoredTutor extends Object implements Comparable<ScoredTutor>
Tutor
that allows for the inclusion of meta info
like a score for a give tutor.
Score should be greater than zero, and indicate how well a given tutor matches a given Query
.
Constructor and Description |
---|
ScoredTutor(Tutor tutor,
double score) |
public ScoredTutor(Tutor tutor, double score)
public Double getScore()
public Tutor getTutor()
public int compareTo(ScoredTutor o)
compareTo
in interface Comparable<ScoredTutor>