public static class Words.Builder
extends java.lang.Object
Constructor and Description |
---|
Words.Builder()
Instantiates a new builder.
|
Words.Builder(java.util.List<Word> words)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
Words.Builder |
addWord(Word word)
Adds an word to words.
|
Words |
build()
Builds a Words.
|
Words.Builder |
words(java.util.List<Word> words)
Set the words.
|
public Words.Builder()
public Words.Builder(java.util.List<Word> words)
words
- the wordspublic Words build()
public Words.Builder addWord(Word word)
word
- the new wordpublic Words.Builder words(java.util.List<Word> words)
words
- the words