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