Class RangeFacetResultBuilder
java.lang.Object
com.commercetools.api.models.product.RangeFacetResultBuilder
- All Implemented Interfaces:
Builder<RangeFacetResult>
RangeFacetResultBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddRanges
(Function<FacetRangeBuilder, FacetRange> builder) add the value to the ranges using the builder functionbuild()
builds RangeFacetResult with checking for non-null required valuesbuilds RangeFacetResult without checking for non-null required valuesvalue of ranges}static RangeFacetResultBuilder
of()
factory method for an instance of RangeFacetResultBuilderstatic RangeFacetResultBuilder
of
(RangeFacetResult template) create builder for RangeFacetResult instanceplusRanges
(FacetRange... ranges) add values to the rangesplusRanges
(Function<FacetRangeBuilder, FacetRangeBuilder> builder) add the value to the ranges using the builder functionranges
(FacetRange... ranges) set values to the rangesranges
(List<FacetRange> ranges) set value to the rangessetRanges
(Function<FacetRangeBuilder, FacetRange> builder) set the value to the ranges using the builder functionwithRanges
(Function<FacetRangeBuilder, FacetRangeBuilder> builder) set the value to the ranges using the builder function
-
Constructor Details
-
RangeFacetResultBuilder
public RangeFacetResultBuilder()
-
-
Method Details
-
ranges
set values to the ranges- Parameters:
ranges
- value to be set- Returns:
- Builder
-
ranges
set value to the ranges- Parameters:
ranges
- value to be set- Returns:
- Builder
-
plusRanges
add values to the ranges- Parameters:
ranges
- value to be set- Returns:
- Builder
-
plusRanges
add the value to the ranges using the builder function- Parameters:
builder
- function to build the ranges value- Returns:
- Builder
-
withRanges
set the value to the ranges using the builder function- Parameters:
builder
- function to build the ranges value- Returns:
- Builder
-
addRanges
add the value to the ranges using the builder function- Parameters:
builder
- function to build the ranges value- Returns:
- Builder
-
setRanges
set the value to the ranges using the builder function- Parameters:
builder
- function to build the ranges value- Returns:
- Builder
-
getRanges
value of ranges}- Returns:
- ranges
-
build
builds RangeFacetResult with checking for non-null required values- Specified by:
build
in interfaceBuilder<RangeFacetResult>
- Returns:
- RangeFacetResult
-
buildUnchecked
builds RangeFacetResult without checking for non-null required values- Returns:
- RangeFacetResult
-
of
factory method for an instance of RangeFacetResultBuilder- Returns:
- builder
-
of
create builder for RangeFacetResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-