Class FacetRangeBuilder
- All Implemented Interfaces:
Builder<FacetRange>
- Direct Known Subclasses:
FacetResultRangeBuilder
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()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.builds FacetRange with checking for non-null required valuesDeprecated.builds FacetRange without checking for non-null required valuesDeprecated.Number of ProductVariants for which the values in a field fall into the specified range.Deprecated.The range's lower endpoint.Deprecated.The range's lower endpoint.getCount()Deprecated.Number of ProductVariants for which the values in a field fall into the specified range.getFrom()Deprecated.The range's lower endpoint.Deprecated.The range's lower endpoint.getMax()Deprecated.Maximum value within the range.getMean()Deprecated.Arithmetic mean of the values within the range.getMin()Deprecated.Minimum value within the range.Deprecated.Number of Products for which the values in a field fall into the specified range.getTo()Deprecated.The range's upper endpoint.getToStr()Deprecated.The range's upper endpoint.getTotal()Deprecated.Sum of all values contained in the range.Deprecated.Maximum value within the range.Deprecated.Arithmetic mean of the values within the range.Deprecated.Minimum value within the range.static FacetRangeBuilderof()Deprecated.factory method for an instance of FacetRangeBuilderstatic FacetRangeBuilderof(FacetRange template) Deprecated.create builder for FacetRange instanceproductCount(Long productCount) Deprecated.Number of Products for which the values in a field fall into the specified range.Deprecated.The range's upper endpoint.Deprecated.The range's upper endpoint.Deprecated.Sum of all values contained in the range.
-
Constructor Details
-
FacetRangeBuilder
public FacetRangeBuilder()Deprecated.
-
-
Method Details
-
from
Deprecated.The range's lower endpoint.
0represents -∞.- Parameters:
from- value to be set- Returns:
- Builder
-
fromStr
Deprecated.The range's lower endpoint.
An empty string represents -∞.
- Parameters:
fromStr- value to be set- Returns:
- Builder
-
to
Deprecated.The range's upper endpoint.
0represents +∞.- Parameters:
to- value to be set- Returns:
- Builder
-
toStr
Deprecated.The range's upper endpoint.
An empty string represents +∞.
- Parameters:
toStr- value to be set- Returns:
- Builder
-
count
Deprecated.Number of ProductVariants for which the values in a field fall into the specified range.
- Parameters:
count- value to be set- Returns:
- Builder
-
productCount
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- Returns:
- Builder
-
total
Deprecated.Sum of all values contained in the range.
- Parameters:
total- value to be set- Returns:
- Builder
-
min
Deprecated.Minimum value within the range.
- Parameters:
min- value to be set- Returns:
- Builder
-
max
Deprecated.Maximum value within the range.
- Parameters:
max- value to be set- Returns:
- Builder
-
mean
Deprecated.Arithmetic mean of the values within the range.
- Parameters:
mean- value to be set- Returns:
- Builder
-
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
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
-
build
Deprecated.builds FacetRange with checking for non-null required values- Specified by:
buildin interfaceBuilder<FacetRange>- Returns:
- FacetRange
-
buildUnchecked
Deprecated.builds FacetRange without checking for non-null required values- Returns:
- FacetRange
-
of
Deprecated.factory method for an instance of FacetRangeBuilder- Returns:
- builder
-
of
Deprecated.create builder for FacetRange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-