Class SearchOrExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchOrExpressionBuilder
- All Implemented Interfaces:
Builder<SearchOrExpression>
SearchOrExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchOrExpression searchOrExpression = SearchOrExpression.builder()
.plusOr(orBuilder -> orBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOr
(Function<SearchQueryBuilder, SearchQuery> builder) add the value to the or using the builder functionbuild()
builds SearchOrExpression with checking for non-null required valuesbuilds SearchOrExpression without checking for non-null required valuesgetOr()
value of or}static SearchOrExpressionBuilder
of()
factory method for an instance of SearchOrExpressionBuilderstatic SearchOrExpressionBuilder
of
(SearchOrExpression template) create builder for SearchOrExpression instanceor
(SearchQuery... or) set values to the oror
(List<SearchQuery> or) set value to the orplusOr
(SearchQuery... or) add values to the orplusOr
(Function<SearchQueryBuilder, SearchQueryBuilder> builder) add the value to the or using the builder functionsetOr
(Function<SearchQueryBuilder, SearchQuery> builder) set the value to the or using the builder functionwithOr
(Function<SearchQueryBuilder, SearchQueryBuilder> builder) set the value to the or using the builder function
-
Constructor Details
-
SearchOrExpressionBuilder
public SearchOrExpressionBuilder()
-
-
Method Details
-
or
set values to the or- Parameters:
or
- value to be set- Returns:
- Builder
-
or
set value to the or- Parameters:
or
- value to be set- Returns:
- Builder
-
plusOr
add values to the or- Parameters:
or
- value to be set- Returns:
- Builder
-
plusOr
add the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
withOr
set the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
addOr
add the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
setOr
set the value to the or using the builder function- Parameters:
builder
- function to build the or value- Returns:
- Builder
-
getOr
value of or}- Returns:
- or
-
build
builds SearchOrExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchOrExpression>
- Returns:
- SearchOrExpression
-
buildUnchecked
builds SearchOrExpression without checking for non-null required values- Returns:
- SearchOrExpression
-
of
factory method for an instance of SearchOrExpressionBuilder- Returns:
- builder
-
of
create builder for SearchOrExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-