Class CustomTokenizerBuilder
java.lang.Object
com.commercetools.api.models.product.CustomTokenizerBuilder
- All Implemented Interfaces:
Builder<CustomTokenizer>
CustomTokenizerBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomTokenizer customTokenizer = CustomTokenizer.builder()
.plusInputs(inputsBuilder -> inputsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomTokenizer with checking for non-null required valuesbuilds CustomTokenizer without checking for non-null required valuesContains custom tokens.Contains custom tokens.Contains custom tokens.static CustomTokenizerBuilder
of()
factory method for an instance of CustomTokenizerBuilderstatic CustomTokenizerBuilder
of
(CustomTokenizer template) create builder for CustomTokenizer instanceplusInputs
(String... inputs) Contains custom tokens.
-
Constructor Details
-
CustomTokenizerBuilder
public CustomTokenizerBuilder()
-
-
Method Details
-
inputs
Contains custom tokens.
- Parameters:
inputs
- value to be set- Returns:
- Builder
-
inputs
Contains custom tokens.
- Parameters:
inputs
- value to be set- Returns:
- Builder
-
plusInputs
Contains custom tokens.
- Parameters:
inputs
- value to be set- Returns:
- Builder
-
getInputs
Contains custom tokens.
- Returns:
- inputs
-
build
builds CustomTokenizer with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomTokenizer>
- Returns:
- CustomTokenizer
-
buildUnchecked
builds CustomTokenizer without checking for non-null required values- Returns:
- CustomTokenizer
-
of
factory method for an instance of CustomTokenizerBuilder- Returns:
- builder
-
of
create builder for CustomTokenizer instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-