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