Interface ProductSearchFacetResultCount
- All Superinterfaces:
ProductSearchFacetResult
Result of a count facet.
Example to create an instance using the builder pattern
ProductSearchFacetResultCount productSearchFacetResultCount = ProductSearchFacetResultCount.builder()
.name("{name}")
.value(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSearchFacetResultCountbuilder
(ProductSearchFacetResultCount template) create builder for ProductSearchFacetResultCount instancedeepCopy
(ProductSearchFacetResultCount template) factory method to create a deep copy of ProductSearchFacetResultCount@NotNull Long
getValue()
Number of Products (or Product Variants) matching the query.of()
factory methodof
(ProductSearchFacetResultCount template) factory method to create a shallow copy ProductSearchFacetResultCountvoid
Number of Products (or Product Variants) matching the query.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetResultCount>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_search.ProductSearchFacetResult
getName, setName, withProductSearchFacetResult
-
Method Details
-
getValue
Number of Products (or Product Variants) matching the query.
- Returns:
- value
-
setValue
Number of Products (or Product Variants) matching the query.
- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of ProductSearchFacetResultCount
-
of
factory method to create a shallow copy ProductSearchFacetResultCount- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSearchFacetResultCount deepCopy(@Nullable ProductSearchFacetResultCount template) factory method to create a deep copy of ProductSearchFacetResultCount- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchFacetResultCount- Returns:
- builder
-
builder
create builder for ProductSearchFacetResultCount instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchFacetResultCount
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
-