Class OrderSearchFilterExpressionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSearchFilterExpressionBuilder
- All Implemented Interfaces:
Builder<OrderSearchFilterExpression>
public class OrderSearchFilterExpressionBuilder
extends Object
implements Builder<OrderSearchFilterExpression>
OrderSearchFilterExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSearchFilterExpression orderSearchFilterExpression = OrderSearchFilterExpression.builder()
.plusFilter(filterBuilder -> filterBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd the value to the filter using the builder functionbuild()
builds OrderSearchFilterExpression with checking for non-null required valuesbuilds OrderSearchFilterExpression without checking for non-null required valuesfilter
(OrderSearchQueryExpression... filter) set values to the filterfilter
(List<OrderSearchQueryExpression> filter) set value to the filtervalue of filter}of()
factory method for an instance of OrderSearchFilterExpressionBuilderof
(OrderSearchFilterExpression template) create builder for OrderSearchFilterExpression instanceplusFilter
(OrderSearchQueryExpression... filter) add values to the filteradd the value to the filter using the builder functionset the value to the filter using the builder functionset the value to the filter using the builder function
-
Constructor Details
-
OrderSearchFilterExpressionBuilder
public OrderSearchFilterExpressionBuilder()
-
-
Method Details
-
filter
set values to the filter- Parameters:
filter
- value to be set- Returns:
- Builder
-
filter
set value to the filter- Parameters:
filter
- value to be set- Returns:
- Builder
-
plusFilter
add values to the filter- Parameters:
filter
- value to be set- Returns:
- Builder
-
plusFilter
public OrderSearchFilterExpressionBuilder plusFilter(Function<OrderSearchQueryExpressionBuilder, OrderSearchQueryExpressionBuilder> builder) add the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
withFilter
public OrderSearchFilterExpressionBuilder withFilter(Function<OrderSearchQueryExpressionBuilder, OrderSearchQueryExpressionBuilder> builder) set the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
addFilter
public OrderSearchFilterExpressionBuilder addFilter(Function<OrderSearchQueryExpressionBuilder, OrderSearchQueryExpression> builder) add the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
setFilter
public OrderSearchFilterExpressionBuilder setFilter(Function<OrderSearchQueryExpressionBuilder, OrderSearchQueryExpression> builder) set the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
getFilter
value of filter}- Returns:
- filter
-
build
builds OrderSearchFilterExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSearchFilterExpression>
- Returns:
- OrderSearchFilterExpression
-
buildUnchecked
builds OrderSearchFilterExpression without checking for non-null required values- Returns:
- OrderSearchFilterExpression
-
of
factory method for an instance of OrderSearchFilterExpressionBuilder- Returns:
- builder
-
of
create builder for OrderSearchFilterExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-