public static class CustomWord.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
CustomWord.Builder |
addMappingOnly(String mappingOnly)
Adds a new element to mappingOnly.
|
CustomWord.Builder |
addSoundsLike(String soundsLike)
Adds a new element to soundsLike.
|
CustomWord |
build()
Builds a CustomWord.
|
CustomWord.Builder |
displayAs(String displayAs)
Set the displayAs.
|
CustomWord.Builder |
mappingOnly(List<String> mappingOnly)
Set the mappingOnly.
|
CustomWord.Builder |
soundsLike(List<String> soundsLike)
Set the soundsLike.
|
CustomWord.Builder |
word(String word)
Set the word.
|
public CustomWord build()
public CustomWord.Builder addMappingOnly(String mappingOnly)
mappingOnly
- the new element to be addedpublic CustomWord.Builder addSoundsLike(String soundsLike)
soundsLike
- the new element to be addedpublic CustomWord.Builder word(String word)
word
- the wordpublic CustomWord.Builder mappingOnly(List<String> mappingOnly)
mappingOnly
- the mappingOnlypublic CustomWord.Builder soundsLike(List<String> soundsLike)
soundsLike
- the soundsLikepublic CustomWord.Builder displayAs(String displayAs)
displayAs
- the displayAsCopyright © 2024 IBM Cloud. All rights reserved.