Class SuggestTokenizerBuilder
java.lang.Object
com.commercetools.history.models.common.SuggestTokenizerBuilder
- All Implemented Interfaces:
Builder<SuggestTokenizer>
SuggestTokenizerBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SuggestTokenizer suggestTokenizer = SuggestTokenizer.builder()
.type("{type}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SuggestTokenizer with checking for non-null required valuesbuilds SuggestTokenizer without checking for non-null required valuesgetType()
value of type}static SuggestTokenizerBuilder
of()
factory method for an instance of SuggestTokenizerBuilderstatic SuggestTokenizerBuilder
of
(SuggestTokenizer template) create builder for SuggestTokenizer instanceset the value to the type
-
Constructor Details
-
SuggestTokenizerBuilder
public SuggestTokenizerBuilder()
-
-
Method Details
-
type
set the value to the type- Parameters:
type
- value to be set- Returns:
- Builder
-
getType
value of type}- Returns:
- type
-
build
builds SuggestTokenizer with checking for non-null required values- Specified by:
build
in interfaceBuilder<SuggestTokenizer>
- Returns:
- SuggestTokenizer
-
buildUnchecked
builds SuggestTokenizer without checking for non-null required values- Returns:
- SuggestTokenizer
-
of
factory method for an instance of SuggestTokenizerBuilder- Returns:
- builder
-
of
create builder for SuggestTokenizer instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-