Class OrderSearchAndExpressionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSearchAndExpressionBuilder
- All Implemented Interfaces:
Builder<OrderSearchAndExpression>
public class OrderSearchAndExpressionBuilder
extends Object
implements Builder<OrderSearchAndExpression>
OrderSearchAndExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSearchAndExpression orderSearchAndExpression = OrderSearchAndExpression.builder()
.plusAnd(andBuilder -> andBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd the value to the and using the builder functionand
(OrderSearchQuery... and) set values to the andand
(List<OrderSearchQuery> and) set value to the andbuild()
builds OrderSearchAndExpression with checking for non-null required valuesbuilds OrderSearchAndExpression without checking for non-null required valuesgetAnd()
value of and}of()
factory method for an instance of OrderSearchAndExpressionBuilderof
(OrderSearchAndExpression template) create builder for OrderSearchAndExpression instanceplusAnd
(OrderSearchQuery... and) add values to the andadd the value to the and using the builder functionset the value to the and using the builder functionset the value to the and using the builder function
-
Constructor Details
-
OrderSearchAndExpressionBuilder
public OrderSearchAndExpressionBuilder()
-
-
Method Details
-
and
set values to the and- Parameters:
and
- value to be set- Returns:
- Builder
-
and
set value to the and- Parameters:
and
- value to be set- Returns:
- Builder
-
plusAnd
add values to the and- Parameters:
and
- value to be set- Returns:
- Builder
-
plusAnd
public OrderSearchAndExpressionBuilder plusAnd(Function<OrderSearchQueryBuilder, OrderSearchQueryBuilder> builder) add the value to the and using the builder function- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
withAnd
public OrderSearchAndExpressionBuilder withAnd(Function<OrderSearchQueryBuilder, OrderSearchQueryBuilder> builder) set the value to the and using the builder function- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
addAnd
public OrderSearchAndExpressionBuilder addAnd(Function<OrderSearchQueryBuilder, OrderSearchQuery> builder) add the value to the and using the builder function- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
setAnd
public OrderSearchAndExpressionBuilder setAnd(Function<OrderSearchQueryBuilder, OrderSearchQuery> builder) set the value to the and using the builder function- Parameters:
builder
- function to build the and value- Returns:
- Builder
-
getAnd
value of and}- Returns:
- and
-
build
builds OrderSearchAndExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSearchAndExpression>
- Returns:
- OrderSearchAndExpression
-
buildUnchecked
builds OrderSearchAndExpression without checking for non-null required values- Returns:
- OrderSearchAndExpression
-
of
factory method for an instance of OrderSearchAndExpressionBuilder- Returns:
- builder
-
of
create builder for OrderSearchAndExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-