public abstract class BasePredicate extends Object implements Predicate
Base Predicate implementation.
| Constructor and Description |
|---|
BasePredicate() |
| Modifier and Type | Method and Description |
|---|---|
Predicate |
and(Predicate predicate)
Concatenates this predicate with the given predicate to a combined predicate through a logical AND operator.
|
Predicate |
apply(Function<Predicate,Predicate> transformation)
Applies the given transformation, returning the transformed predicate.
|
Predicate |
not()
Negates this predicate through a logical NOT operator.
|
Predicate |
or(Predicate predicate)
Concatenates this predicate with the given predicate to a combined predicate through a logical OR operator.
|
public Predicate and(Predicate predicate)
PredicateConcatenates this predicate with the given predicate to a combined predicate through a logical AND operator.
public Predicate or(Predicate predicate)
PredicateConcatenates this predicate with the given predicate to a combined predicate through a logical OR operator.
public Predicate not()
PredicateNegates this predicate through a logical NOT operator.
public Predicate apply(Function<Predicate,Predicate> transformation)
PredicateApplies the given transformation, returning the transformed predicate.
If the predicate implementation wraps sub-predicates then this method needs to be overwritten to transform the sub-predicates as well.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.