public class RankedAnswer extends GenericModel
RankedAnswer class used by Ranking.| Constructor and Description |
|---|
RankedAnswer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAnswerID()
Returns the answer ID.
|
java.lang.Double |
getConfidence()
Gets the confidence that Watson has in this answer's ranking.
|
java.lang.Double |
getScore()
Returns the score of the candidate answer.
|
void |
setAnswerID(java.lang.String answerID)
Sets the answer ID.
|
void |
setConfidence(java.lang.Double confidence)
Sets the confidence that Watson has in this answer's ranking Higher values represent higher confidences.
|
void |
setScore(java.lang.Double score)
Sets the score of the candidate answer.
|
equals, hashCode, toStringpublic java.lang.String getAnswerID()
public void setAnswerID(java.lang.String answerID)
answerID - the new answerIDpublic java.lang.Double getScore()
public void setScore(java.lang.Double score)
score - the score to setpublic java.lang.Double getConfidence()
public void setConfidence(java.lang.Double confidence)
confidence - the new confidence