Class CustomTokenizerBuilder

java.lang.Object
com.commercetools.importapi.models.products.CustomTokenizerBuilder
All Implemented Interfaces:
Builder<CustomTokenizer>

public class CustomTokenizerBuilder extends Object implements Builder<CustomTokenizer>
CustomTokenizerBuilder
Example to create an instance using the builder pattern

     CustomTokenizer customTokenizer = CustomTokenizer.builder()
             .plusInputs(inputsBuilder -> inputsBuilder)
             .build()
 
  • Constructor Details

    • CustomTokenizerBuilder

      public CustomTokenizerBuilder()
  • Method Details

    • inputs

      public CustomTokenizerBuilder inputs(String... inputs)
      set values to the inputs
      Parameters:
      inputs - value to be set
      Returns:
      Builder
    • inputs

      public CustomTokenizerBuilder inputs(List<String> inputs)
      set value to the inputs
      Parameters:
      inputs - value to be set
      Returns:
      Builder
    • plusInputs

      public CustomTokenizerBuilder plusInputs(String... inputs)
      add values to the inputs
      Parameters:
      inputs - value to be set
      Returns:
      Builder
    • getInputs

      public List<String> getInputs()
      value of inputs}
      Returns:
      inputs
    • build

      public CustomTokenizer build()
      builds CustomTokenizer with checking for non-null required values
      Specified by:
      build in interface Builder<CustomTokenizer>
      Returns:
      CustomTokenizer
    • buildUnchecked

      public CustomTokenizer buildUnchecked()
      builds CustomTokenizer without checking for non-null required values
      Returns:
      CustomTokenizer
    • of

      public static CustomTokenizerBuilder of()
      factory method for an instance of CustomTokenizerBuilder
      Returns:
      builder
    • of

      public static CustomTokenizerBuilder of(CustomTokenizer template)
      create builder for CustomTokenizer instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder