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