Interface FacetRange
- All Known Subinterfaces:
FacetResultRange
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 Summary
Modifier and TypeMethodDescriptionstatic FacetRangeBuilderbuilder()Deprecated.builder factory method for FacetRangestatic FacetRangeBuilderbuilder(FacetRange template) Deprecated.create builder for FacetRange instancecopyDeep()Deprecated.static FacetRangedeepCopy(FacetRange template) Deprecated.factory method to create a deep copy of FacetRange@NotNull LonggetCount()Deprecated.Number of ProductVariants for which the values in a field fall into the specified range.@NotNull DoublegetFrom()Deprecated.The range's lower endpoint.@NotNull StringDeprecated.The range's lower endpoint.@NotNull DoublegetMax()Deprecated.Maximum value within the range.@NotNull DoublegetMean()Deprecated.Arithmetic mean of the values within the range.@NotNull DoublegetMin()Deprecated.Minimum value within the range.Deprecated.Number of Products for which the values in a field fall into the specified range.@NotNull DoublegetTo()Deprecated.The range's upper endpoint.@NotNull StringgetToStr()Deprecated.The range's upper endpoint.@NotNull DoublegetTotal()Deprecated.Sum of all values contained in the range.static FacetRangeof()Deprecated.factory methodstatic FacetRangeof(FacetRange template) Deprecated.factory method to create a shallow copy FacetRangevoidDeprecated.Number of ProductVariants for which the values in a field fall into the specified range.voidDeprecated.The range's lower endpoint.voidsetFromStr(String fromStr) Deprecated.The range's lower endpoint.voidDeprecated.Maximum value within the range.voidDeprecated.Arithmetic mean of the values within the range.voidDeprecated.Minimum value within the range.voidsetProductCount(Long productCount) Deprecated.Number of Products for which the values in a field fall into the specified range.voidDeprecated.The range's upper endpoint.voidDeprecated.The range's upper endpoint.voidDeprecated.Sum of all values contained in the range.static tools.jackson.core.type.TypeReference<FacetRange>Deprecated.gives a TypeReference for usage with Jackson DataBinddefault <T> TwithFacetRange(Function<FacetRange, T> helper) Deprecated.accessor map function
-
Method Details
-
getFrom
Deprecated.The range's lower endpoint.
0represents -∞.- Returns:
- from
-
getFromStr
Deprecated.The range's lower endpoint.
An empty string represents -∞.
- Returns:
- fromStr
-
getTo
Deprecated.The range's upper endpoint.
0represents +∞.- Returns:
- to
-
getToStr
Deprecated.The range's upper endpoint.
An empty string represents +∞.
- Returns:
- toStr
-
getCount
Deprecated.Number of ProductVariants for which the values in a field fall into the specified range.
- Returns:
- count
-
getProductCount
Long getProductCount()Deprecated.Number of Products for which the values in a field fall into the specified range.
Present only if the
counting productsextension is enabled.- Returns:
- productCount
-
getTotal
Deprecated.Sum of all values contained in the range.
- Returns:
- total
-
getMin
Deprecated.Minimum value within the range.
- Returns:
- min
-
getMax
Deprecated.Maximum value within the range.
- Returns:
- max
-
getMean
Deprecated.Arithmetic mean of the values within the range.
- Returns:
- mean
-
setFrom
Deprecated.The range's lower endpoint.
0represents -∞.- Parameters:
from- value to be set
-
setFromStr
Deprecated.The range's lower endpoint.
An empty string represents -∞.
- Parameters:
fromStr- value to be set
-
setTo
Deprecated.The range's upper endpoint.
0represents +∞.- Parameters:
to- value to be set
-
setToStr
Deprecated.The range's upper endpoint.
An empty string represents +∞.
- Parameters:
toStr- value to be set
-
setCount
Deprecated.Number of ProductVariants for which the values in a field fall into the specified range.
- Parameters:
count- value to be set
-
setProductCount
Deprecated.Number of Products for which the values in a field fall into the specified range.
Present only if the
counting productsextension is enabled.- Parameters:
productCount- value to be set
-
setTotal
Deprecated.Sum of all values contained in the range.
- Parameters:
total- value to be set
-
setMin
Deprecated.Minimum value within the range.
- Parameters:
min- value to be set
-
setMax
Deprecated.Maximum value within the range.
- Parameters:
max- value to be set
-
setMean
Deprecated.Arithmetic mean of the values within the range.
- Parameters:
mean- value to be set
-
of
Deprecated.factory method- Returns:
- instance of FacetRange
-
of
Deprecated.factory method to create a shallow copy FacetRange- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
FacetRange copyDeep()Deprecated. -
deepCopy
Deprecated.factory method to create a deep copy of FacetRange- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
Deprecated.builder factory method for FacetRange- Returns:
- builder
-
builder
Deprecated.create builder for FacetRange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withFacetRange
Deprecated.accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
Deprecated.gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-