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