Class CombinationQueryPredicate<T>
java.lang.Object
com.commercetools.api.predicates.query.CombinationQueryPredicate<T>
- All Implemented Interfaces:
Predicate,QueryPredicate,Builder<QueryPredicate>
public class CombinationQueryPredicate<T>
extends Object
implements QueryPredicate, Builder<QueryPredicate>
-
Constructor Summary
ConstructorsConstructorDescriptionCombinationQueryPredicate(QueryPredicate predicate, Supplier<T> modelSupplier) -
Method Summary
Modifier and TypeMethodDescriptionand(CombinationQueryPredicate<T> second) combines the previous predicate with the argument predicate by an AND operatorand(Function<T, CombinationQueryPredicate<T>> fn) combines the previous predicate with the argument predicate by an AND operatorbuild()build an instance of the generic typegroup()puts the resulting predicate in parenthesesnot()negates the previous predicate with the NOT predicateor(CombinationQueryPredicate<T> second) combines the previous predicate with the argument predicate by an OR operatoror(Function<T, CombinationQueryPredicate<T>> fn) combines the previous predicate with the argument predicate by an OR operatorrender()
-
Constructor Details
-
CombinationQueryPredicate
-
-
Method Details
-
and
combines the previous predicate with the argument predicate by an AND operator- Parameters:
fn- predicate builder function- Returns:
- a combination predicate
-
and
combines the previous predicate with the argument predicate by an AND operator- Parameters:
second- predicate- Returns:
- a combination predicate
-
or
combines the previous predicate with the argument predicate by an OR operator- Parameters:
fn- predicate builder function- Returns:
- a combination predicate
-
or
combines the previous predicate with the argument predicate by an OR operator- Parameters:
second- predicate- Returns:
- a combination predicate
-
group
puts the resulting predicate in parentheses- Returns:
- a combination predicate
-
not
negates the previous predicate with the NOT predicate- Returns:
- a combination predicate
-
render
-
build
Description copied from interface:Builderbuild an instance of the generic type
-