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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
SearchTerm[] |
getTerms()
Return the terms.
|
int |
hashCode() |
boolean |
match(Message message)
Match by applying the terms, in order, to the Message and performing an AND operation
to the result.
|
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 SearchTermmessage - the Message to apply the terms topublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object