Interface ProductSearchFacetDistinctBucketSortExpression
public interface ProductSearchFacetDistinctBucketSortExpression
ProductSearchFacetDistinctBucketSortExpression
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetDistinctBucketSortExpression productSearchFacetDistinctBucketSortExpression = ProductSearchFacetDistinctBucketSortExpression.builder()
.by(ProductSearchFacetDistinctBucketSortBy.COUNT)
.order(SearchSortOrder.ASC)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSearchFacetDistinctBucketSortExpressioncreate builder for ProductSearchFacetDistinctBucketSortExpression instancefactory method to create a deep copy of ProductSearchFacetDistinctBucketSortExpressiongetBy()
Defines whether to sort by bucket count or key.@NotNull SearchSortOrder
getOrder()
Defines the sorting order.of()
factory methodfactory method to create a shallow copy ProductSearchFacetDistinctBucketSortExpressionvoid
Defines whether to sort by bucket count or key.void
setOrder
(SearchSortOrder order) Defines the sorting order.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetDistinctBucketSortExpression>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSearchFacetDistinctBucketSortExpression
(Function<ProductSearchFacetDistinctBucketSortExpression, T> helper) accessor map function
-
Method Details
-
getBy
Defines whether to sort by bucket count or key.
- Returns:
- by
-
getOrder
Defines the sorting order.
- Returns:
- order
-
setBy
Defines whether to sort by bucket count or key.
- Parameters:
by
- value to be set
-
setOrder
Defines the sorting order.
- Parameters:
order
- value to be set
-
of
factory method- Returns:
- instance of ProductSearchFacetDistinctBucketSortExpression
-
of
static ProductSearchFacetDistinctBucketSortExpression of(ProductSearchFacetDistinctBucketSortExpression template) factory method to create a shallow copy ProductSearchFacetDistinctBucketSortExpression- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSearchFacetDistinctBucketSortExpression deepCopy(@Nullable ProductSearchFacetDistinctBucketSortExpression template) factory method to create a deep copy of ProductSearchFacetDistinctBucketSortExpression- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchFacetDistinctBucketSortExpression- Returns:
- builder
-
builder
static ProductSearchFacetDistinctBucketSortExpressionBuilder builder(ProductSearchFacetDistinctBucketSortExpression template) create builder for ProductSearchFacetDistinctBucketSortExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchFacetDistinctBucketSortExpression
default <T> T withProductSearchFacetDistinctBucketSortExpression(Function<ProductSearchFacetDistinctBucketSortExpression, 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<ProductSearchFacetDistinctBucketSortExpression> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-