Modifier and Type | Method and Description |
---|---|
<T extends Result> |
as(Class<T> type)
Convert this type.
|
boolean |
equals(Object obj) |
Result |
getFinalResult()
Get the final result (after rescoring).
|
long |
getId()
Get the ID for the result.
|
Result |
getOriginalResult()
Get the original result (before rescoring).
|
double |
getScore()
Get the score (value) associated with this result.
|
int |
hashCode() |
boolean |
hasScore()
Query whether the result has a score.
|
public Result getOriginalResult()
Get the original result (before rescoring).
public Result getFinalResult()
Get the final result (after rescoring). If additional details are available on the new score, this result will carry them. If no additional details are available, it may just be this result.
public long getId()
Result
Get the ID for the result.
public double getScore()
Result
Get the score (value) associated with this result.
getScore
in interface Result
Double.NaN
if the result does not have a score).public boolean hasScore()
Result
Query whether the result has a score. This is equivalent to testing the return value of Result.getScore()
with Double.isNaN(double)
, but may make the resulting code more readable.
public <T extends Result> T as(@Nonnull Class<T> type)
Convert this type. It searches the types in the following order: