Interface FilteredFacetResult
- All Superinterfaces:
FacetResult
FilteredFacetResult
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FilteredFacetResult filteredFacetResult = FilteredFacetResult.builder()
.count(0.3)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FilteredFacetResultBuilderbuilder()builder factory method for FilteredFacetResultstatic FilteredFacetResultBuilderbuilder(FilteredFacetResult template) create builder for FilteredFacetResult instancecopyDeep()static FilteredFacetResultdeepCopy(FilteredFacetResult template) factory method to create a deep copy of FilteredFacetResult@NotNull LonggetCount()Number of ProductVariants matching the value specified in filtered facet expression.Number of Products matching the value specified in filtered facet expression.static FilteredFacetResultof()factory methodstatic FilteredFacetResultof(FilteredFacetResult template) factory method to create a shallow copy FilteredFacetResultvoidNumber of ProductVariants matching the value specified in filtered facet expression.voidsetProductCount(Long productCount) Number of Products matching the value specified in filtered facet expression.static com.fasterxml.jackson.core.type.TypeReference<FilteredFacetResult>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithFilteredFacetResult(Function<FilteredFacetResult, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.FacetResult
getType, withFacetResult
-
Field Details
-
FILTER
discriminator value for FilteredFacetResult- See Also:
-
-
Method Details
-
getCount
Number of ProductVariants matching the value specified in filtered facet expression.
- Returns:
- count
-
getProductCount
Long getProductCount()Number of Products matching the value specified in filtered facet expression.
Present only if the
counting productsextension is enabled.- Returns:
- productCount
-
setCount
Number of ProductVariants matching the value specified in filtered facet expression.
- Parameters:
count- value to be set
-
setProductCount
Number of Products matching the value specified in filtered facet expression.
Present only if the
counting productsextension is enabled.- Parameters:
productCount- value to be set
-
of
factory method- Returns:
- instance of FilteredFacetResult
-
of
factory method to create a shallow copy FilteredFacetResult- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
FilteredFacetResult copyDeep()- Specified by:
copyDeepin interfaceFacetResult
-
deepCopy
factory method to create a deep copy of FilteredFacetResult- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for FilteredFacetResult- Returns:
- builder
-
builder
create builder for FilteredFacetResult instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withFilteredFacetResult
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
-