public static class Word.Builder
extends java.lang.Object
| Constructor and Description | 
|---|
| Builder()Instantiates a new builder. | 
| Builder(java.lang.String word,
       java.lang.String translation)Instantiates a new builder with required properties. | 
| Modifier and Type | Method and Description | 
|---|---|
| Word | build()Builds a Word. | 
| Word.Builder | partOfSpeech(java.lang.String partOfSpeech)Set the partOfSpeech. | 
| Word.Builder | translation(java.lang.String translation)Set the translation. | 
| Word.Builder | word(java.lang.String word)Set the word. | 
public Builder()
public Builder(java.lang.String word,
               java.lang.String translation)
word - the wordtranslation - the translationpublic Word build()
public Word.Builder word(java.lang.String word)
word - the wordpublic Word.Builder translation(java.lang.String translation)
translation - the translationpublic Word.Builder partOfSpeech(java.lang.String partOfSpeech)
partOfSpeech - the partOfSpeech