public class NamedValuePredicate extends BasePredicate
A wrapper which serves as a marker for property/variable-based predicates.
| Constructor and Description |
|---|
NamedValuePredicate(Predicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
Predicate |
apply(Function<Predicate,Predicate> transformation)
Applies the given transformation, returning the transformed predicate.
|
Predicate |
getPredicate() |
String |
toString() |
and, not, orpublic NamedValuePredicate(Predicate predicate)
public Predicate getPredicate()
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.
apply in interface Predicateapply in class BasePredicatetransformation - the predicate transformation to be appliedCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.