Class SearchFilterExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchFilterExpressionBuilder
- All Implemented Interfaces:
Builder<SearchFilterExpression>
public class SearchFilterExpressionBuilder
extends Object
implements Builder<SearchFilterExpression>
SearchFilterExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchFilterExpression searchFilterExpression = SearchFilterExpression.builder()
.plusFilter(filterBuilder -> filterBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd the value to the filter using the builder functionbuild()
builds SearchFilterExpression with checking for non-null required valuesbuilds SearchFilterExpression without checking for non-null required valuesfilter
(SearchQueryExpression... filter) set values to the filterfilter
(List<SearchQueryExpression> filter) set value to the filtervalue of filter}of()
factory method for an instance of SearchFilterExpressionBuilderof
(SearchFilterExpression template) create builder for SearchFilterExpression instanceplusFilter
(SearchQueryExpression... 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
-
SearchFilterExpressionBuilder
public SearchFilterExpressionBuilder()
-
-
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 SearchFilterExpressionBuilder plusFilter(Function<SearchQueryExpressionBuilder, SearchQueryExpressionBuilder> builder) add the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
withFilter
public SearchFilterExpressionBuilder withFilter(Function<SearchQueryExpressionBuilder, SearchQueryExpressionBuilder> builder) set the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
addFilter
public SearchFilterExpressionBuilder addFilter(Function<SearchQueryExpressionBuilder, SearchQueryExpression> builder) add the value to the filter using the builder function- Parameters:
builder
- function to build the filter value- Returns:
- Builder
-
setFilter
public SearchFilterExpressionBuilder setFilter(Function<SearchQueryExpressionBuilder, SearchQueryExpression> 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 SearchFilterExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchFilterExpression>
- Returns:
- SearchFilterExpression
-
buildUnchecked
builds SearchFilterExpression without checking for non-null required values- Returns:
- SearchFilterExpression
-
of
factory method for an instance of SearchFilterExpressionBuilder- Returns:
- builder
-
of
create builder for SearchFilterExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-