Interface ProductSearchFacetResultBucket
- All Superinterfaces:
ProductSearchFacetResult
Result of a distinct facet or a ranges facet.
Example to create an instance using the builder pattern
ProductSearchFacetResultBucket productSearchFacetResultBucket = ProductSearchFacetResultBucket.builder()
.name("{name}")
.plusBuckets(bucketsBuilder -> bucketsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSearchFacetResultBucketbuilder
(ProductSearchFacetResultBucket template) create builder for ProductSearchFacetResultBucket instancedeepCopy
(ProductSearchFacetResultBucket template) factory method to create a deep copy of ProductSearchFacetResultBucket@NotNull @Valid List<ProductSearchFacetResultBucketEntry>
Contains results of the facet.of()
factory methodof
(ProductSearchFacetResultBucket template) factory method to create a shallow copy ProductSearchFacetResultBucketvoid
setBuckets
(ProductSearchFacetResultBucketEntry... buckets) Contains results of the facet.void
Contains results of the facet.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetResultBucket>
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
-
getBuckets
Contains results of the facet.
- Returns:
- buckets
-
setBuckets
Contains results of the facet.
- Parameters:
buckets
- values to be set
-
setBuckets
Contains results of the facet.
- Parameters:
buckets
- values to be set
-
of
factory method- Returns:
- instance of ProductSearchFacetResultBucket
-
of
factory method to create a shallow copy ProductSearchFacetResultBucket- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSearchFacetResultBucket deepCopy(@Nullable ProductSearchFacetResultBucket template) factory method to create a deep copy of ProductSearchFacetResultBucket- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchFacetResultBucket- Returns:
- builder
-
builder
create builder for ProductSearchFacetResultBucket instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchFacetResultBucket
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetResultBucket> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-