Interface FacetRange

All Known Subinterfaces:
FacetResultRange

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

     FacetRange facetRange = FacetRange.builder()
             .from(0.3)
             .fromStr("{fromStr}")
             .to(0.3)
             .toStr("{toStr}")
             .count(0.3)
             .total(0.3)
             .min(0.3)
             .max(0.3)
             .mean(0.3)
             .build()
 
  • Method Details

    • getFrom

      @NotNull @NotNull Double getFrom()
      Returns:
      from
    • getFromStr

      @NotNull @NotNull String getFromStr()
      Returns:
      fromStr
    • getTo

      @NotNull @NotNull Double getTo()
      Returns:
      to
    • getToStr

      @NotNull @NotNull String getToStr()
      Returns:
      toStr
    • getCount

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

      Long getProductCount()
      Returns:
      productCount
    • getTotal

      @NotNull @NotNull Double getTotal()
      Returns:
      total
    • getMin

      @NotNull @NotNull Double getMin()
      Returns:
      min
    • getMax

      @NotNull @NotNull Double getMax()
      Returns:
      max
    • getMean

      @NotNull @NotNull Double getMean()
      Returns:
      mean
    • setFrom

      void setFrom(Double from)
      set from
      Parameters:
      from - value to be set
    • setFromStr

      void setFromStr(String fromStr)
      set fromStr
      Parameters:
      fromStr - value to be set
    • setTo

      void setTo(Double to)
      set to
      Parameters:
      to - value to be set
    • setToStr

      void setToStr(String toStr)
      set toStr
      Parameters:
      toStr - 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
    • setTotal

      void setTotal(Double total)
      set total
      Parameters:
      total - value to be set
    • setMin

      void setMin(Double min)
      set min
      Parameters:
      min - value to be set
    • setMax

      void setMax(Double max)
      set max
      Parameters:
      max - value to be set
    • setMean

      void setMean(Double mean)
      set mean
      Parameters:
      mean - value to be set
    • of

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

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

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

      static FacetRangeBuilder builder()
      builder factory method for FacetRange
      Returns:
      builder
    • builder

      static FacetRangeBuilder builder(FacetRange template)
      create builder for FacetRange instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withFacetRange

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