Interface CustomerSearchResult


public interface CustomerSearchResult
CustomerSearchResult
Example to create an instance using the builder pattern

     CustomerSearchResult customerSearchResult = CustomerSearchResult.builder()
             .id("{id}")
             .relevance(0.3)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      id of the Customer matching the search query.

      Returns:
      id
    • getRelevance

      @NotNull @NotNull Double getRelevance()

      How closely this customer matches the search query.

      Returns:
      relevance
    • setId

      void setId(String id)

      id of the Customer matching the search query.

      Parameters:
      id - value to be set
    • setRelevance

      void setRelevance(Double relevance)

      How closely this customer matches the search query.

      Parameters:
      relevance - value to be set
    • of

      static CustomerSearchResult of()
      factory method
      Returns:
      instance of CustomerSearchResult
    • of

      factory method to create a shallow copy CustomerSearchResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static CustomerSearchResultBuilder builder()
      builder factory method for CustomerSearchResult
      Returns:
      builder
    • builder

      create builder for CustomerSearchResult instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerSearchResult

      default <T> T withCustomerSearchResult(Function<CustomerSearchResult,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<CustomerSearchResult> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference