Constructor and Description |
---|
CandidateOperand(IdentityLinkType linkType)
Creates a new operand instance.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
containsAnyOf(Collection<T> possibleCandidates)
Builds a predicate which tests that the value of this operand contains any of the given
possibleCandidates . |
Predicate |
containsAnyOf(T possibleCandidate)
Builds a predicate which tests that the value of this operand contains the given
possibleCandidate . |
Predicate |
containsAnyOf(T possibleCandidate1,
T possibleCandidate2)
Builds a predicate which tests that the value of this operand contains the given
possibleCandidate1 or possibleCandidate2 . |
Predicate |
containsAnyOf(T possibleCandidate1,
T possibleCandidate2,
T possibleCandidate3)
Builds a predicate which tests that the value of this operand contains the given
possibleCandidate1 , possibleCandidate2 , or
possibleCandidate3 |
Predicate |
containsAnyOf(T possibleCandidate1,
T possibleCandidate2,
T possibleCandidate3,
T... morePossibleCandidates)
Builds a predicate which tests that the value of this operand contains the given
possibleCandidate1 , possibleCandidate2 ,
possibleCandidate3 , or any of morePossibleCandidates . |
Predicate |
isEmpty()
Builds a predicate which tests that the value of this operand contains no candidates.
|
public CandidateOperand(IdentityLinkType linkType)
linkType
- the type of identity links for all predicates to be builtpublic Predicate containsAnyOf(T possibleCandidate)
possibleCandidate
.possibleCandidate
- the expected candidatepublic Predicate containsAnyOf(T possibleCandidate1, T possibleCandidate2)
possibleCandidate1
or possibleCandidate2
.possibleCandidate1
- the first possible candidatepossibleCandidate2
- the second possible candidatepublic Predicate containsAnyOf(T possibleCandidate1, T possibleCandidate2, T possibleCandidate3)
possibleCandidate1
, possibleCandidate2
, or
possibleCandidate3
possibleCandidate1
- the first possible candidatepossibleCandidate2
- the second possible candidatepossibleCandidate3
- the third possible candidatepublic Predicate containsAnyOf(T possibleCandidate1, T possibleCandidate2, T possibleCandidate3, T... morePossibleCandidates)
possibleCandidate1
, possibleCandidate2
,
possibleCandidate3
, or any of morePossibleCandidates
.possibleCandidate1
- the first possible candidatepossibleCandidate2
- the second possible candidatepossibleCandidate3
- the third possible candidatemorePossibleCandidates
- more possible candidatespublic Predicate containsAnyOf(Collection<T> possibleCandidates)
possibleCandidates
.possibleCandidates
- the possible candidates (tested with OR semantics)public Predicate isEmpty()
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.