Class SearchNotExpressionBuilder
java.lang.Object
com.commercetools.api.models.search.SearchNotExpressionBuilder
- All Implemented Interfaces:
Builder<SearchNotExpression>
SearchNotExpressionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SearchNotExpression searchNotExpression = SearchNotExpression.builder()
.plusNot(notBuilder -> notBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNot
(Function<SearchQueryBuilder, SearchQuery> builder) add the value to the not using the builder functionbuild()
builds SearchNotExpression with checking for non-null required valuesbuilds SearchNotExpression without checking for non-null required valuesgetNot()
value of not}not
(SearchQuery... not) set values to the notnot
(List<SearchQuery> not) set value to the notstatic SearchNotExpressionBuilder
of()
factory method for an instance of SearchNotExpressionBuilderstatic SearchNotExpressionBuilder
of
(SearchNotExpression template) create builder for SearchNotExpression instanceplusNot
(SearchQuery... not) add values to the notplusNot
(Function<SearchQueryBuilder, SearchQueryBuilder> builder) add the value to the not using the builder functionsetNot
(Function<SearchQueryBuilder, SearchQuery> builder) set the value to the not using the builder functionwithNot
(Function<SearchQueryBuilder, SearchQueryBuilder> builder) set the value to the not using the builder function
-
Constructor Details
-
SearchNotExpressionBuilder
public SearchNotExpressionBuilder()
-
-
Method Details
-
not
set values to the not- Parameters:
not
- value to be set- Returns:
- Builder
-
not
set value to the not- Parameters:
not
- value to be set- Returns:
- Builder
-
plusNot
add values to the not- Parameters:
not
- value to be set- Returns:
- Builder
-
plusNot
add the value to the not using the builder function- Parameters:
builder
- function to build the not value- Returns:
- Builder
-
withNot
set the value to the not using the builder function- Parameters:
builder
- function to build the not value- Returns:
- Builder
-
addNot
add the value to the not using the builder function- Parameters:
builder
- function to build the not value- Returns:
- Builder
-
setNot
set the value to the not using the builder function- Parameters:
builder
- function to build the not value- Returns:
- Builder
-
getNot
value of not}- Returns:
- not
-
build
builds SearchNotExpression with checking for non-null required values- Specified by:
build
in interfaceBuilder<SearchNotExpression>
- Returns:
- SearchNotExpression
-
buildUnchecked
builds SearchNotExpression without checking for non-null required values- Returns:
- SearchNotExpression
-
of
factory method for an instance of SearchNotExpressionBuilder- Returns:
- builder
-
of
create builder for SearchNotExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-