Interface ProductSearchMatchingVariants


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

     ProductSearchMatchingVariants productSearchMatchingVariants = ProductSearchMatchingVariants.builder()
             .allMatched(true)
             .plusMatchedVariants(matchedVariantsBuilder -> matchedVariantsBuilder)
             .build()
 
  • Method Details

    • getAllMatched

      @NotNull @NotNull Boolean getAllMatched()

      Whether the search criteria definitely matches all Variants of the returned Product, like for Product-level fields. Is always false for search expressions on Variant-level fields.

      Returns:
      allMatched
    • getMatchedVariants

      @NotNull @Valid @NotNull @Valid List<ProductSearchMatchingVariantEntry> getMatchedVariants()

      The variants matching the search criteria or empty if all matched.

      Returns:
      matchedVariants
    • setAllMatched

      void setAllMatched(Boolean allMatched)

      Whether the search criteria definitely matches all Variants of the returned Product, like for Product-level fields. Is always false for search expressions on Variant-level fields.

      Parameters:
      allMatched - value to be set
    • setMatchedVariants

      void setMatchedVariants(ProductSearchMatchingVariantEntry... matchedVariants)

      The variants matching the search criteria or empty if all matched.

      Parameters:
      matchedVariants - values to be set
    • setMatchedVariants

      void setMatchedVariants(List<ProductSearchMatchingVariantEntry> matchedVariants)

      The variants matching the search criteria or empty if all matched.

      Parameters:
      matchedVariants - values to be set
    • of

      factory method
      Returns:
      instance of ProductSearchMatchingVariants
    • of

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

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

      builder factory method for ProductSearchMatchingVariants
      Returns:
      builder
    • builder

      create builder for ProductSearchMatchingVariants instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductSearchMatchingVariants

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