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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRanges
(Function<FacetRangeBuilder, FacetRange> builder) Statistical data over values fordate
,time
,datetime
,number
, andmoney
type fields.build()
builds RangeFacetResult with checking for non-null required valuesbuilds RangeFacetResult without checking for non-null required valuesStatistical data over values fordate
,time
,datetime
,number
, andmoney
type fields.static RangeFacetResultBuilder
of()
factory method for an instance of RangeFacetResultBuilderstatic RangeFacetResultBuilder
of
(RangeFacetResult template) create builder for RangeFacetResult instanceplusRanges
(FacetRange... ranges) Statistical data over values fordate
,time
,datetime
,number
, andmoney
type fields.plusRanges
(Function<FacetRangeBuilder, FacetRangeBuilder> builder) Statistical data over values fordate
,time
,datetime
,number
, andmoney
type fields.ranges
(FacetRange... ranges) Statistical data over values fordate
,time
,datetime
,number
, andmoney
type fields.ranges
(List<FacetRange> ranges) Statistical data over values fordate
,time
,datetime
,number
, andmoney
type fields.setRanges
(Function<FacetRangeBuilder, FacetRange> builder) Statistical data over values fordate
,time
,datetime
,number
, andmoney
type fields.withRanges
(Function<FacetRangeBuilder, FacetRangeBuilder> builder) Statistical data over values fordate
,time
,datetime
,number
, andmoney
type fields.
-
Constructor Details
-
RangeFacetResultBuilder
public RangeFacetResultBuilder()
-
-
Method Details
-
ranges
Statistical data over values for
date
,time
,datetime
,number
, andmoney
type fields.- Parameters:
ranges
- value to be set- Returns:
- Builder
-
ranges
Statistical data over values for
date
,time
,datetime
,number
, andmoney
type fields.- Parameters:
ranges
- value to be set- Returns:
- Builder
-
plusRanges
Statistical data over values for
date
,time
,datetime
,number
, andmoney
type fields.- Parameters:
ranges
- value to be set- Returns:
- Builder
-
plusRanges
Statistical data over values for
date
,time
,datetime
,number
, andmoney
type fields.- Parameters:
builder
- function to build the ranges value- Returns:
- Builder
-
withRanges
Statistical data over values for
date
,time
,datetime
,number
, andmoney
type fields.- Parameters:
builder
- function to build the ranges value- Returns:
- Builder
-
addRanges
Statistical data over values for
date
,time
,datetime
,number
, andmoney
type fields.- Parameters:
builder
- function to build the ranges value- Returns:
- Builder
-
setRanges
Statistical data over values for
date
,time
,datetime
,number
, andmoney
type fields.- Parameters:
builder
- function to build the ranges value- Returns:
- Builder
-
getRanges
Statistical data over values for
date
,time
,datetime
,number
, andmoney
type fields.- 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
-