Interface SearchOrExpression
- All Superinterfaces:
SearchCompoundExpression
,SearchQuery
SearchOrExpression
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()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchOrExpressionBuilder
builder()
builder factory method for SearchOrExpressionstatic SearchOrExpressionBuilder
builder
(SearchOrExpression template) create builder for SearchOrExpression instancestatic SearchOrExpression
deepCopy
(SearchOrExpression template) factory method to create a deep copy of SearchOrExpression@NotNull @Valid List<SearchQuery>
getOr()
static SearchOrExpression
of()
factory methodstatic SearchOrExpression
of
(SearchOrExpression template) factory method to create a shallow copy SearchOrExpressionvoid
setOr
(SearchQuery... or) set orvoid
setOr
(List<SearchQuery> or) set orstatic com.fasterxml.jackson.core.type.TypeReference<SearchOrExpression>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withSearchOrExpression
(Function<SearchOrExpression, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.search.SearchCompoundExpression
withSearchCompoundExpression
Methods inherited from interface com.commercetools.api.models.search.SearchQuery
withSearchQuery
-
Method Details
-
getOr
- Returns:
- or
-
setOr
set or- Parameters:
or
- values to be set
-
setOr
set or- Parameters:
or
- values to be set
-
of
factory method- Returns:
- instance of SearchOrExpression
-
of
factory method to create a shallow copy SearchOrExpression- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of SearchOrExpression- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SearchOrExpression- Returns:
- builder
-
builder
create builder for SearchOrExpression instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSearchOrExpression
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-