Class SearchLongRangeExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchLongRangeExpressionBuilder
- All Implemented Interfaces:
Builder<SearchLongRangeExpression>
public class SearchLongRangeExpressionBuilder
extends Object
implements Builder<SearchLongRangeExpression>
SearchLongRangeExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchLongRangeExpression searchLongRangeExpression = SearchLongRangeExpression.builder()
.range(rangeBuilder -> rangeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SearchLongRangeExpression with checking for non-null required valuesbuilds SearchLongRangeExpression without checking for non-null required valuesgetRange()
value of range}of()
factory method for an instance of SearchLongRangeExpressionBuilderof
(SearchLongRangeExpression template) create builder for SearchLongRangeExpression instancerange
(SearchLongRangeValue 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
-
SearchLongRangeExpressionBuilder
public SearchLongRangeExpressionBuilder()
-
-
Method Details
-
range
public SearchLongRangeExpressionBuilder range(Function<SearchLongRangeValueBuilder, SearchLongRangeValueBuilder> builder) set the value to the range using the builder function- Parameters:
builder
- function to build the range value- Returns:
- Builder
-
withRange
public SearchLongRangeExpressionBuilder withRange(Function<SearchLongRangeValueBuilder, SearchLongRangeValue> 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 SearchLongRangeExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchLongRangeExpression>
- Returns:
- SearchLongRangeExpression
-
buildUnchecked
builds SearchLongRangeExpression without checking for non-null required values- Returns:
- SearchLongRangeExpression
-
of
factory method for an instance of SearchLongRangeExpressionBuilder- Returns:
- builder
-
of
create builder for SearchLongRangeExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-