Interface RangeFacetResult
- All Superinterfaces:
FacetResult
RangeFacetResult
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RangeFacetResult rangeFacetResult = RangeFacetResult.builder()
.plusRanges(rangesBuilder -> rangesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RangeFacetResultBuilder
builder()
builder factory method for RangeFacetResultstatic RangeFacetResultBuilder
builder
(RangeFacetResult template) create builder for RangeFacetResult instancestatic RangeFacetResult
deepCopy
(RangeFacetResult template) factory method to create a deep copy of RangeFacetResult@NotNull @Valid List<FacetRange>
static RangeFacetResult
of()
factory methodstatic RangeFacetResult
of
(RangeFacetResult template) factory method to create a shallow copy RangeFacetResultvoid
setRanges
(FacetRange... ranges) set rangesvoid
setRanges
(List<FacetRange> ranges) set rangesstatic com.fasterxml.jackson.core.type.TypeReference<RangeFacetResult>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withRangeFacetResult
(Function<RangeFacetResult, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.FacetResult
getType, withFacetResult
-
Field Details
-
RANGE
discriminator value for RangeFacetResult- See Also:
-
-
Method Details
-
getRanges
- Returns:
- ranges
-
setRanges
set ranges- Parameters:
ranges
- values to be set
-
setRanges
set ranges- Parameters:
ranges
- values to be set
-
of
factory method- Returns:
- instance of RangeFacetResult
-
of
factory method to create a shallow copy RangeFacetResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of RangeFacetResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RangeFacetResult- Returns:
- builder
-
builder
create builder for RangeFacetResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRangeFacetResult
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
-