Interface FacetTerm
- All Known Subinterfaces:
FacetResultTerm
public interface FacetTerm
FacetTerm
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FacetTerm facetTerm = FacetTerm.builder()
.count(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic FacetTermBuilderbuilder()builder factory method for FacetTermstatic FacetTermBuildercreate builder for FacetTerm instancecopyDeep()static FacetTermfactory method to create a deep copy of FacetTerm@NotNull LonggetCount()Number of ProductVariants for which thetermapplies.Number of Products for which thetermapplies.@NotNull ObjectgetTerm()Value for the field specified in the term facet expression for which at least one ProductVariant could be found.static FacetTermof()factory methodstatic FacetTermfactory method to create a shallow copy FacetTermvoidNumber of ProductVariants for which thetermapplies.voidsetProductCount(Long productCount) Number of Products for which thetermapplies.voidValue for the field specified in the term facet expression for which at least one ProductVariant could be found.static com.fasterxml.jackson.core.type.TypeReference<FacetTerm>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithFacetTerm(Function<FacetTerm, T> helper) accessor map function
-
Method Details
-
getTerm
Value for the field specified in the term facet expression for which at least one ProductVariant could be found.
- Returns:
- term
-
getCount
Number of ProductVariants for which the
termapplies.- Returns:
- count
-
getProductCount
Long getProductCount()Number of Products for which the
termapplies. Only available if thecounting productsextension is enabled.- Returns:
- productCount
-
setTerm
Value for the field specified in the term facet expression for which at least one ProductVariant could be found.
- Parameters:
term- value to be set
-
setCount
Number of ProductVariants for which the
termapplies.- Parameters:
count- value to be set
-
setProductCount
Number of Products for which the
termapplies. Only available if thecounting productsextension is enabled.- Parameters:
productCount- value to be set
-
of
factory method- Returns:
- instance of FacetTerm
-
of
factory method to create a shallow copy FacetTerm- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
FacetTerm copyDeep() -
deepCopy
factory method to create a deep copy of FacetTerm- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for FacetTerm- Returns:
- builder
-
builder
create builder for FacetTerm instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withFacetTerm
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-