Interface FilteredFacetResult

All Superinterfaces:
FacetResult

public interface FilteredFacetResult extends FacetResult
FilteredFacetResult
Example to create an instance using the builder pattern

     FilteredFacetResult filteredFacetResult = FilteredFacetResult.builder()
             .count(0.3)
             .build()
 
  • Field Details

  • Method Details

    • getCount

      @NotNull @NotNull Long getCount()

      Number of ProductVariants matching the value specified in filtered facet expression.

      Returns:
      count
    • getProductCount

      Long getProductCount()

      Number of Products matching the value specified in filtered facet expression.

      Present only if the counting products extension is enabled.

      Returns:
      productCount
    • setCount

      void setCount(Long count)

      Number of ProductVariants matching the value specified in filtered facet expression.

      Parameters:
      count - value to be set
    • setProductCount

      void setProductCount(Long productCount)

      Number of Products matching the value specified in filtered facet expression.

      Present only if the counting products extension is enabled.

      Parameters:
      productCount - value to be set
    • of

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

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

      Specified by:
      copyDeep in interface FacetResult
    • deepCopy

      @Nullable static FilteredFacetResult deepCopy(@Nullable FilteredFacetResult template)
      factory method to create a deep copy of FilteredFacetResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static FilteredFacetResultBuilder builder()
      builder factory method for FilteredFacetResult
      Returns:
      builder
    • builder

      create builder for FilteredFacetResult instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withFilteredFacetResult

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