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, or
public NamedValuePredicate(Predicate predicate)
public Predicate getPredicate()
public Predicate apply(Function<Predicate,Predicate> transformation)
Predicate
Applies 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 Predicate
apply
in class BasePredicate
transformation
- the predicate transformation to be appliedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.