Class SearchAndExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchAndExpressionBuilder
- All Implemented Interfaces:
Builder<SearchAndExpression>
SearchAndExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchAndExpression searchAndExpression = SearchAndExpression.builder()
.plusAnd(andBuilder -> andBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnd(Function<SearchQueryBuilder, SearchQuery> builder) add the value to the and using the builder functionand(SearchQuery... and) set values to the andand(List<SearchQuery> and) set value to the andbuild()builds SearchAndExpression with checking for non-null required valuesbuilds SearchAndExpression without checking for non-null required valuesgetAnd()value of and}static SearchAndExpressionBuilderof()factory method for an instance of SearchAndExpressionBuilderstatic SearchAndExpressionBuilderof(SearchAndExpression template) create builder for SearchAndExpression instanceplusAnd(SearchQuery... and) add values to the andplusAnd(Function<SearchQueryBuilder, SearchQueryBuilder> builder) add the value to the and using the builder functionsetAnd(Function<SearchQueryBuilder, SearchQuery> builder) set the value to the and using the builder functionwithAnd(Function<SearchQueryBuilder, SearchQueryBuilder> builder) set the value to the and using the builder function
-
Constructor Details
-
SearchAndExpressionBuilder
public SearchAndExpressionBuilder()
-
-
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
add the value to the and using the builder function- Parameters:
builder- function to build the and value- Returns:
- Builder
-
withAnd
set the value to the and using the builder function- Parameters:
builder- function to build the and value- Returns:
- Builder
-
addAnd
add the value to the and using the builder function- Parameters:
builder- function to build the and value- Returns:
- Builder
-
setAnd
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 SearchAndExpression with checking for non-null required values- Specified by:
buildin interfaceBuilder<SearchAndExpression>- Returns:
- SearchAndExpression
-
buildUnchecked
builds SearchAndExpression without checking for non-null required values- Returns:
- SearchAndExpression
-
of
factory method for an instance of SearchAndExpressionBuilder- Returns:
- builder
-
of
create builder for SearchAndExpression instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-