public static class Expansion.Builder
extends java.lang.Object
Constructor and Description |
---|
Expansion.Builder()
Instantiates a new builder.
|
Expansion.Builder(java.util.List<java.lang.String> expandedTerms)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
Expansion.Builder |
addExpandedTerms(java.lang.String expandedTerms)
Adds an expandedTerms to expandedTerms.
|
Expansion.Builder |
addInputTerms(java.lang.String inputTerms)
Adds an inputTerms to inputTerms.
|
Expansion |
build()
Builds a Expansion.
|
Expansion.Builder |
expandedTerms(java.util.List<java.lang.String> expandedTerms)
Set the expandedTerms.
|
Expansion.Builder |
inputTerms(java.util.List<java.lang.String> inputTerms)
Set the inputTerms.
|
public Expansion.Builder()
public Expansion.Builder(java.util.List<java.lang.String> expandedTerms)
expandedTerms
- the expandedTermspublic Expansion build()
public Expansion.Builder addInputTerms(java.lang.String inputTerms)
inputTerms
- the new inputTermspublic Expansion.Builder addExpandedTerms(java.lang.String expandedTerms)
expandedTerms
- the new expandedTermspublic Expansion.Builder inputTerms(java.util.List<java.lang.String> inputTerms)
inputTerms
- the inputTermspublic Expansion.Builder expandedTerms(java.util.List<java.lang.String> expandedTerms)
expandedTerms
- the expandedTerms