Class FacetTermBuilder
- Direct Known Subclasses:
FacetResultTermBuilder
Example to create an instance using the builder pattern
FacetTerm facetTerm = FacetTerm.builder()
.count(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.builds FacetTerm with checking for non-null required valuesDeprecated.builds FacetTerm without checking for non-null required valuesDeprecated.Number of ProductVariants for which thetermapplies.getCount()Deprecated.Number of ProductVariants for which thetermapplies.Deprecated.Number of Products for which thetermapplies.getTerm()Deprecated.Value for the field specified in the term facet expression for which at least one ProductVariant could be found.static FacetTermBuilderof()Deprecated.factory method for an instance of FacetTermBuilderstatic FacetTermBuilderDeprecated.create builder for FacetTerm instanceproductCount(Long productCount) Deprecated.Number of Products for which thetermapplies.Deprecated.Value for the field specified in the term facet expression for which at least one ProductVariant could be found.
-
Constructor Details
-
FacetTermBuilder
public FacetTermBuilder()Deprecated.
-
-
Method Details
-
term
Deprecated.Value for the field specified in the term facet expression for which at least one ProductVariant could be found. For AttributeNumberType Attributes, numeric values are returned as decimals, for example
1.0instead of1.- Parameters:
term- value to be set- Returns:
- Builder
-
count
Deprecated.Number of ProductVariants for which the
termapplies.- Parameters:
count- value to be set- Returns:
- Builder
-
productCount
Deprecated.Number of Products for which the
termapplies. Only available if thecounting productsextension is enabled.- Parameters:
productCount- value to be set- Returns:
- Builder
-
getTerm
Deprecated.Value for the field specified in the term facet expression for which at least one ProductVariant could be found. For AttributeNumberType Attributes, numeric values are returned as decimals, for example
1.0instead of1.- Returns:
- term
-
getCount
Deprecated.Number of ProductVariants for which the
termapplies.- Returns:
- count
-
getProductCount
Deprecated.Number of Products for which the
termapplies. Only available if thecounting productsextension is enabled.- Returns:
- productCount
-
build
Deprecated.builds FacetTerm with checking for non-null required values -
buildUnchecked
Deprecated.builds FacetTerm without checking for non-null required values- Returns:
- FacetTerm
-
of
Deprecated.factory method for an instance of FacetTermBuilder- Returns:
- builder
-
of
Deprecated.create builder for FacetTerm instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-