public class Ranking extends GenericModel
Ranking used by the RetrieveAndRank class.| Constructor and Description | 
|---|
Ranking()  | 
| Modifier and Type | Method and Description | 
|---|---|
List<RankedAnswer> | 
getAnswers()
Gets the answers. 
 | 
String | 
getId()
Gets the id. 
 | 
String | 
getName()
Gets the name. 
 | 
String | 
getTopAnswer()
Gets the top answer. 
 | 
String | 
getUrl()
Gets the url. 
 | 
void | 
setAnswers(List<RankedAnswer> answers)
Sets the answers. 
 | 
void | 
setId(String id)
Sets the id. 
 | 
void | 
setName(String name)
Sets the name. 
 | 
void | 
setTopAnswer(String topAnswer)
Sets the top answer. 
 | 
void | 
setUrl(String url)
Sets the url. 
 | 
equals, hashCode, toStringpublic void setId(String id)
id - the new idpublic void setUrl(String url)
url - the new urlpublic void setName(String name)
name - the new namepublic void setTopAnswer(String topAnswer)
topAnswer - the new top answerpublic void setAnswers(List<RankedAnswer> answers)
answers - the new answerspublic String getId()
public String getUrl()
public String getName()
public String getTopAnswer()
public List<RankedAnswer> getAnswers()
Copyright © 2015–2016 IBM Watson. All rights reserved.