Interface FacetTerm

All Known Subinterfaces:
FacetResultTerm

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

     FacetTerm facetTerm = FacetTerm.builder()
             .count(0.3)
             .build()
 
  • Method Details

    • getTerm

      @NotNull @NotNull Object getTerm()
      Returns:
      term
    • getCount

      @NotNull @NotNull Long getCount()
      Returns:
      count
    • getProductCount

      Long getProductCount()
      Returns:
      productCount
    • setTerm

      void setTerm(Object term)
      set term
      Parameters:
      term - value to be set
    • setCount

      void setCount(Long count)
      set count
      Parameters:
      count - value to be set
    • setProductCount

      void setProductCount(Long productCount)
      set productCount
      Parameters:
      productCount - value to be set
    • of

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

      static FacetTerm of(FacetTerm template)
      factory method to create a shallow copy FacetTerm
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static FacetTermBuilder builder()
      builder factory method for FacetTerm
      Returns:
      builder
    • builder

      static FacetTermBuilder builder(FacetTerm template)
      create builder for FacetTerm instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withFacetTerm

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