public class TranslationResult extends GenericModel
Translation list| Constructor and Description | 
|---|
| TranslationResult() | 
| Modifier and Type | Method and Description | 
|---|---|
| Integer | getCharacterCount()Gets the character count. | 
| String | getFirstTranslation()Gets the first translation. | 
| List<Translation> | getTranslations()Gets the translations. | 
| Integer | getWordCount()Gets the word count. | 
| void | setCharacterCount(Integer characterCount)Sets the character count. | 
| void | setTranslations(List<Translation> translations)Sets the translations. | 
| void | setWordCount(Integer wordCount)Sets the word count. | 
equals, hashCode, toStringpublic Integer getCharacterCount()
public String getFirstTranslation()
public List<Translation> getTranslations()
public Integer getWordCount()
public void setCharacterCount(Integer characterCount)
characterCount - The character countpublic void setTranslations(List<Translation> translations)
translations - The translationspublic void setWordCount(Integer wordCount)
wordCount - The word countCopyright © 2015–2016 IBM Watson. All rights reserved.