|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.search.SearchTerm
javax.mail.search.AndTerm
public final class AndTerm
A logical AND of a number of search terms.
| Field Summary | |
|---|---|
protected SearchTerm[] |
terms
The target terms. |
| Constructor Summary | |
|---|---|
AndTerm(SearchTerm[] t)
Constructor with multiple terms. |
|
AndTerm(SearchTerm t1,
SearchTerm t2)
Constructor with two 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SearchTerm[] terms
| Constructor Detail |
|---|
public AndTerm(SearchTerm t1,
SearchTerm t2)
t1 - the first termt2 - the second termpublic AndTerm(SearchTerm[] t)
t - the terms| Method Detail |
|---|
public SearchTerm[] getTerms()
public boolean match(Message message)
match in class SearchTermpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||