Modifier and Type | Method and Description |
---|---|
<T extends Result> |
as(java.lang.Class<T> type)
Convert this type.
|
boolean |
equals(java.lang.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.
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 java.lang.Class<T> type)
Convert this type. It searches the types in the following order:
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object