Class FacetRangeBuilder
java.lang.Object
com.commercetools.api.models.product.FacetRangeBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<FacetRange>
- Direct Known Subclasses:
FacetResultRangeBuilder
public class FacetRangeBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<FacetRange>
FacetRangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FacetRange facetRange = FacetRange.builder()
.from(0.3)
.fromStr("{fromStr}")
.to(0.3)
.toStr("{toStr}")
.count(0.3)
.total(0.3)
.min(0.3)
.max(0.3)
.mean(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds FacetRange with checking for non-null required valuesbuilds FacetRange without checking for non-null required valuesset the value to the countset the value to the fromset the value to the fromStrgetCount()
value of count}getFrom()
value of from}value of fromStr}getMax()
value of max}getMean()
value of mean}getMin()
value of min}value of productCount}getTo()
value of to}getToStr()
value of toStr}getTotal()
value of total}set the value to the maxset the value to the meanset the value to the minstatic FacetRangeBuilder
of()
factory method for an instance of FacetRangeBuilderstatic FacetRangeBuilder
of
(FacetRange template) create builder for FacetRange instanceproductCount
(Long productCount) set the value to the productCountset the value to the toset the value to the toStrset the value to the total
-
Constructor Details
-
FacetRangeBuilder
public FacetRangeBuilder()
-
-
Method Details
-
from
set the value to the from- Parameters:
from
- value to be set- Returns:
- Builder
-
fromStr
set the value to the fromStr- Parameters:
fromStr
- value to be set- Returns:
- Builder
-
to
set the value to the to- Parameters:
to
- value to be set- Returns:
- Builder
-
toStr
set the value to the toStr- Parameters:
toStr
- 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
-
total
set the value to the total- Parameters:
total
- value to be set- Returns:
- Builder
-
min
set the value to the min- Parameters:
min
- value to be set- Returns:
- Builder
-
max
set the value to the max- Parameters:
max
- value to be set- Returns:
- Builder
-
mean
set the value to the mean- Parameters:
mean
- value to be set- Returns:
- Builder
-
getFrom
value of from}- Returns:
- from
-
getFromStr
value of fromStr}- Returns:
- fromStr
-
getTo
value of to}- Returns:
- to
-
getToStr
value of toStr}- Returns:
- toStr
-
getCount
value of count}- Returns:
- count
-
getProductCount
value of productCount}- Returns:
- productCount
-
getTotal
value of total}- Returns:
- total
-
getMin
value of min}- Returns:
- min
-
getMax
value of max}- Returns:
- max
-
getMean
value of mean}- Returns:
- mean
-
build
builds FacetRange with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<FacetRange>
- Returns:
- FacetRange
-
buildUnchecked
builds FacetRange without checking for non-null required values- Returns:
- FacetRange
-
of
factory method for an instance of FacetRangeBuilder- Returns:
- builder
-
of
create builder for FacetRange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-