Interface SuggestTokenizer

All Known Subinterfaces:
CustomTokenizer, WhitespaceTokenizer

public interface SuggestTokenizer
SuggestTokenizer
Example to create a subtype instance using the builder pattern

     SuggestTokenizer suggestTokenizer = SuggestTokenizer.customBuilder()
             plusInputs(inputsBuilder -> inputsBuilder)
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • deepCopy

      factory method to create a deep copy of SuggestTokenizer
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • customBuilder

      static CustomTokenizerBuilder customBuilder()
      builder for custom subtype
      Returns:
      builder
    • whitespaceBuilder

      static WhitespaceTokenizerBuilder whitespaceBuilder()
      builder for whitespace subtype
      Returns:
      builder
    • withSuggestTokenizer

      default <T> T withSuggestTokenizer(Function<SuggestTokenizer,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<SuggestTokenizer> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference