public class CandidateFieldOperandImpl extends Object implements CandidateFieldOperand
Default implementation of the CandidateFieldOperand
interface.
Constructor and Description |
---|
CandidateFieldOperandImpl(IdentityLinkType linkType)
Creates a new operand instance.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
containsAnyOf(Collection<String> possibleCandidates)
Builds a predicate which tests that the value of this operand contains any of the given
possibleCandidates . |
Predicate |
containsAnyOf(String possibleCandidate)
Builds a predicate which tests that the value of this operand contains the given
possibleCandidate . |
Predicate |
containsAnyOf(String possibleCandidate1,
String possibleCandidate2)
Builds a predicate which tests that the value of this operand contains the given
possibleCandidate1 or possibleCandidate2 . |
Predicate |
containsAnyOf(String possibleCandidate1,
String possibleCandidate2,
String possibleCandidate3)
Builds a predicate which tests that the value of this operand contains the given
possibleCandidate1 , possibleCandidate2 , or
possibleCandidate3 |
Predicate |
containsAnyOf(String possibleCandidate1,
String possibleCandidate2,
String possibleCandidate3,
String... 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 CandidateFieldOperandImpl(IdentityLinkType linkType)
Creates a new operand instance.
linkType
- the type of identity links for all predicates to be builtpublic Predicate containsAnyOf(String possibleCandidate)
CandidateFieldOperand
Builds a predicate which tests that the value of this operand contains the given possibleCandidate
.
containsAnyOf
in interface CandidateFieldOperand
possibleCandidate
- the expected candidatepublic Predicate containsAnyOf(String possibleCandidate1, String possibleCandidate2)
CandidateFieldOperand
Builds a predicate which tests that the value of this operand contains the given possibleCandidate1
or possibleCandidate2
.
containsAnyOf
in interface CandidateFieldOperand
possibleCandidate1
- the first possible candidatepossibleCandidate2
- the second possible candidatepublic Predicate containsAnyOf(String possibleCandidate1, String possibleCandidate2, String possibleCandidate3)
CandidateFieldOperand
Builds a predicate which tests that the value of this operand contains the given possibleCandidate1
, possibleCandidate2
, or
possibleCandidate3
containsAnyOf
in interface CandidateFieldOperand
possibleCandidate1
- the first possible candidatepossibleCandidate2
- the second possible candidatepossibleCandidate3
- the third possible candidate@SafeVarargs public final Predicate containsAnyOf(String possibleCandidate1, String possibleCandidate2, String possibleCandidate3, String... morePossibleCandidates)
CandidateFieldOperand
Builds a predicate which tests that the value of this operand contains the given possibleCandidate1
, possibleCandidate2
,
possibleCandidate3
, or any of morePossibleCandidates
.
containsAnyOf
in interface CandidateFieldOperand
possibleCandidate1
- the first possible candidatepossibleCandidate2
- the second possible candidatepossibleCandidate3
- the third possible candidatemorePossibleCandidates
- more possible candidatespublic Predicate containsAnyOf(Collection<String> possibleCandidates)
CandidateFieldOperand
Builds a predicate which tests that the value of this operand contains any of the given possibleCandidates
.
containsAnyOf
in interface CandidateFieldOperand
possibleCandidates
- the possible candidates (tested with OR semantics)public Predicate isEmpty()
CandidateFieldOperand
Builds a predicate which tests that the value of this operand contains no candidates.
isEmpty
in interface CandidateFieldOperand
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.