Class SearchNumberRangeExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchNumberRangeExpressionBuilder
- All Implemented Interfaces:
Builder<SearchNumberRangeExpression>
public class SearchNumberRangeExpressionBuilder
extends Object
implements Builder<SearchNumberRangeExpression>
SearchNumberRangeExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchNumberRangeExpression searchNumberRangeExpression = SearchNumberRangeExpression.builder()
.range(rangeBuilder -> rangeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchNumberRangeExpression with checking for non-null required valuesbuilds SearchNumberRangeExpression without checking for non-null required valuesgetRange()
value of range}of()
factory method for an instance of SearchNumberRangeExpressionBuilderof
(SearchNumberRangeExpression template) create builder for SearchNumberRangeExpression instancerange
(SearchNumberRangeValue range) set the value to the rangeset the value to the range using the builder functionset the value to the range using the builder function
-
Constructor Details
-
SearchNumberRangeExpressionBuilder
public SearchNumberRangeExpressionBuilder()
-
-
Method Details
-
range
public SearchNumberRangeExpressionBuilder range(Function<SearchNumberRangeValueBuilder, SearchNumberRangeValueBuilder> builder) set the value to the range using the builder function- Parameters:
builder
- function to build the range value- Returns:
- Builder
-
withRange
public SearchNumberRangeExpressionBuilder withRange(Function<SearchNumberRangeValueBuilder, SearchNumberRangeValue> builder) set the value to the range using the builder function- Parameters:
builder
- function to build the range value- Returns:
- Builder
-
range
set the value to the range- Parameters:
range
- value to be set- Returns:
- Builder
-
getRange
value of range}- Returns:
- range
-
build
builds SearchNumberRangeExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchNumberRangeExpression>
- Returns:
- SearchNumberRangeExpression
-
buildUnchecked
builds SearchNumberRangeExpression without checking for non-null required values- Returns:
- SearchNumberRangeExpression
-
of
factory method for an instance of SearchNumberRangeExpressionBuilder- Returns:
- builder
-
of
create builder for SearchNumberRangeExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-