Interface ProductSearchFacetResultBucketEntry
public interface ProductSearchFacetResultBucketEntry
ProductSearchFacetResultBucketEntry
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetResultBucketEntry productSearchFacetResultBucketEntry = ProductSearchFacetResultBucketEntry.builder()
.key("{key}")
.count(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSearchFacetResultBucketEntrybuilder
(ProductSearchFacetResultBucketEntry template) create builder for ProductSearchFacetResultBucketEntry instancedeepCopy
(ProductSearchFacetResultBucketEntry template) factory method to create a deep copy of ProductSearchFacetResultBucketEntry@NotNull Integer
getCount()
Number of values in the bucket.@NotNull String
getKey()
Key of the bucket.of()
factory methodof
(ProductSearchFacetResultBucketEntry template) factory method to create a shallow copy ProductSearchFacetResultBucketEntryvoid
Number of values in the bucket.void
Key of the bucket.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetResultBucketEntry>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getKey
Key of the bucket.
- Returns:
- key
-
getCount
Number of values in the bucket.
- Returns:
- count
-
setKey
Key of the bucket.
- Parameters:
key
- value to be set
-
setCount
Number of values in the bucket.
- Parameters:
count
- value to be set
-
of
factory method- Returns:
- instance of ProductSearchFacetResultBucketEntry
-
of
factory method to create a shallow copy ProductSearchFacetResultBucketEntry- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSearchFacetResultBucketEntry deepCopy(@Nullable ProductSearchFacetResultBucketEntry template) factory method to create a deep copy of ProductSearchFacetResultBucketEntry- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchFacetResultBucketEntry- Returns:
- builder
-
builder
static ProductSearchFacetResultBucketEntryBuilder builder(ProductSearchFacetResultBucketEntry template) create builder for ProductSearchFacetResultBucketEntry instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchFacetResultBucketEntry
default <T> T withProductSearchFacetResultBucketEntry(Function<ProductSearchFacetResultBucketEntry, T> helper) 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<ProductSearchFacetResultBucketEntry> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-