Class FilteredFacetResultBuilder
java.lang.Object
com.commercetools.api.models.product.FilteredFacetResultBuilder
- All Implemented Interfaces:
Builder<FilteredFacetResult>
FilteredFacetResultBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FilteredFacetResult filteredFacetResult = FilteredFacetResult.builder()
.count(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds FilteredFacetResult with checking for non-null required valuesbuilds FilteredFacetResult without checking for non-null required valuesset the value to the countgetCount()
value of count}value of productCount}static FilteredFacetResultBuilder
of()
factory method for an instance of FilteredFacetResultBuilderstatic FilteredFacetResultBuilder
of
(FilteredFacetResult template) create builder for FilteredFacetResult instanceproductCount
(Long productCount) set the value to the productCount
-
Constructor Details
-
FilteredFacetResultBuilder
public FilteredFacetResultBuilder()
-
-
Method Details
-
count
set the value to the count- Parameters:
count
- value to be set- Returns:
- Builder
-
productCount
set the value to the productCount- Parameters:
productCount
- value to be set- Returns:
- Builder
-
getCount
value of count}- Returns:
- count
-
getProductCount
value of productCount}- Returns:
- productCount
-
build
builds FilteredFacetResult with checking for non-null required values- Specified by:
build
in interfaceBuilder<FilteredFacetResult>
- Returns:
- FilteredFacetResult
-
buildUnchecked
builds FilteredFacetResult without checking for non-null required values- Returns:
- FilteredFacetResult
-
of
factory method for an instance of FilteredFacetResultBuilder- Returns:
- builder
-
of
create builder for FilteredFacetResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-