public final class AndTerm extends SearchTerm
Modifier and Type | Field and Description |
---|---|
protected SearchTerm[] |
terms
Terms to which the AND operator should be applied.
|
Constructor and Description |
---|
AndTerm(SearchTerm[] terms)
Constructor for performing and AND across an arbitraty number of terms.
|
AndTerm(SearchTerm a,
SearchTerm b)
Constructor for performing a binary AND.
|
protected SearchTerm[] terms
public AndTerm(SearchTerm a, SearchTerm b)
a
- the first termb
- the second ter,public AndTerm(SearchTerm[] terms)
terms
- the terms to AND togetherpublic SearchTerm[] getTerms()
public boolean match(Message message)
match
in class SearchTerm
message
- the Message to apply the terms toCopyright © 2013. All rights reserved.