public class IdentityLinkPredicate extends BasePredicate
A predicate implementation whose operands are identity links.
<p>
Note: Uses an IN operator when comparing multiple expected values.
| Constructor and Description |
|---|
IdentityLinkPredicate(IdentityLinkType expectedType,
Collection<String> expectedValues)
Constructs a new predicate instance.
|
| Modifier and Type | Method and Description |
|---|---|
Predicate |
apply(Function<Predicate,Predicate> transformation)
Applies the given transformation, returning the transformed predicate.
|
Predicate |
getTypePredicate() |
Predicate |
getValuesPredicate() |
String |
toString() |
and, not, orpublic IdentityLinkPredicate(IdentityLinkType expectedType, Collection<String> expectedValues)
Constructs a new predicate instance.
expectedType - the type of identity links used in this predicateexpectedValues - the expected identity link values used in the comparisonpublic Predicate getTypePredicate()
public Predicate getValuesPredicate()
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 - 2019 edorasware ag. All Rights Reserved.