Class FacetTermBuilder
java.lang.Object
com.commercetools.api.models.product.FacetTermBuilder
- Direct Known Subclasses:
FacetResultTermBuilder
FacetTermBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FacetTerm facetTerm = FacetTerm.builder()
.count(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds FacetTerm with checking for non-null required valuesbuilds FacetTerm without checking for non-null required valuesset the value to the countgetCount()
value of count}value of productCount}getTerm()
value of term}static FacetTermBuilder
of()
factory method for an instance of FacetTermBuilderstatic FacetTermBuilder
create builder for FacetTerm instanceproductCount
(Long productCount) set the value to the productCountset the value to the term
-
Constructor Details
-
FacetTermBuilder
public FacetTermBuilder()
-
-
Method Details
-
term
set the value to the term- Parameters:
term
- value to be set- Returns:
- Builder
-
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
-
getTerm
value of term}- Returns:
- term
-
getCount
value of count}- Returns:
- count
-
getProductCount
value of productCount}- Returns:
- productCount
-
build
builds FacetTerm with checking for non-null required values -
buildUnchecked
builds FacetTerm without checking for non-null required values- Returns:
- FacetTerm
-
of
factory method for an instance of FacetTermBuilder- Returns:
- builder
-
of
create builder for FacetTerm instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-