javax.mail.search
public final class AndTerm extends SearchTerm
| Field Summary | |
|---|---|
| protected SearchTerm[] | terms
Terms to which the AND operator should be applied. |
| Constructor Summary | |
|---|---|
| AndTerm(SearchTerm a, SearchTerm b)
Constructor for performing a binary AND.
| |
| AndTerm(SearchTerm[] terms)
Constructor for performing and AND across an arbitraty number of terms. | |
| Method Summary | |
|---|---|
| boolean | equals(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. |
Parameters: a the first term b the second ter,
Parameters: terms the terms to AND together
Returns: the terms
Parameters: message the Message to apply the terms to
Returns: true if all terms match