javax.mail.search
public final class AndTerm extends SearchTerm
Version: 1.3
| Field Summary | |
|---|---|
| protected SearchTerm[] | terms
The target terms. |
| Constructor Summary | |
|---|---|
| AndTerm(SearchTerm t1, SearchTerm t2)
Constructor with two terms. | |
| AndTerm(SearchTerm[] t)
Constructor with multiple terms. | |
| Method Summary | |
|---|---|
| boolean | equals(Object other) |
| SearchTerm[] | getTerms()
Returns the search terms. |
| int | hashCode() |
| boolean | match(Message message)
Returns true only if all the terms match the specified message. |
Parameters: t1 the first term t2 the second term
Parameters: t the terms