public class CompoundPredicate extends Predicate
| Modifier and Type | Class and Description |
|---|---|
static class |
CompoundPredicate.Operator |
Predicate.PredicateTypeNO_PREDICATE| Constructor and Description |
|---|
CompoundPredicate(CompoundPredicate.Operator logicalOperator) |
CompoundPredicate(CompoundPredicate.Operator logicalOperator,
List<Predicate> predicates) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPredicate(Predicate predicate) |
static CompoundPredicate |
and(Predicate... predicates) |
static CompoundPredicate |
not(Predicate predicates) |
static CompoundPredicate |
or(Predicate... predicates) |
String |
toString()
要求所有子类实现toString方法,以便输出谓词的字符串表示
|
public CompoundPredicate(CompoundPredicate.Operator logicalOperator)
public CompoundPredicate(CompoundPredicate.Operator logicalOperator, List<Predicate> predicates)
public static CompoundPredicate and(Predicate... predicates)
public static CompoundPredicate or(Predicate... predicates)
public static CompoundPredicate not(Predicate predicates)
public void addPredicate(Predicate predicate)
Copyright © 2024 Alibaba Cloud Computing. All rights reserved.