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)
CandidateFieldOperandBuilds a predicate which tests that the value of this operand contains the given possibleCandidate.
containsAnyOf in interface CandidateFieldOperandpossibleCandidate - the expected candidatepublic Predicate containsAnyOf(String possibleCandidate1, String possibleCandidate2)
CandidateFieldOperandBuilds a predicate which tests that the value of this operand contains the given possibleCandidate1 or possibleCandidate2.
containsAnyOf in interface CandidateFieldOperandpossibleCandidate1 - the first possible candidatepossibleCandidate2 - the second possible candidatepublic Predicate containsAnyOf(String possibleCandidate1, String possibleCandidate2, String possibleCandidate3)
CandidateFieldOperandBuilds a predicate which tests that the value of this operand contains the given possibleCandidate1, possibleCandidate2, or
possibleCandidate3
containsAnyOf in interface CandidateFieldOperandpossibleCandidate1 - 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)
CandidateFieldOperandBuilds a predicate which tests that the value of this operand contains the given possibleCandidate1, possibleCandidate2,
possibleCandidate3, or any of morePossibleCandidates.
containsAnyOf in interface CandidateFieldOperandpossibleCandidate1 - the first possible candidatepossibleCandidate2 - the second possible candidatepossibleCandidate3 - the third possible candidatemorePossibleCandidates - more possible candidatespublic Predicate containsAnyOf(Collection<String> possibleCandidates)
CandidateFieldOperandBuilds a predicate which tests that the value of this operand contains any of the given possibleCandidates.
containsAnyOf in interface CandidateFieldOperandpossibleCandidates - the possible candidates (tested with OR semantics)public Predicate isEmpty()
CandidateFieldOperandBuilds a predicate which tests that the value of this operand contains no candidates.
isEmpty in interface CandidateFieldOperandCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.