|
||||||||||||
| 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.OrTerm
A logical OR of a number of search terms.
| Field Summary | |
|---|---|
protected SearchTerm[] |
terms
The target terms. |
| Constructor Summary | |
|---|---|
OrTerm(SearchTerm[] t)
Constructor with multiple search terms. |
|
OrTerm(SearchTerm t1,
SearchTerm t2)
Constructor with two operands. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
SearchTerm[] |
getTerms()
Returns the search terms. |
int |
hashCode()
|
boolean |
match(Message msg)
Returns true only if any of the terms specified in this term match the given 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 OrTerm(SearchTerm t1,
SearchTerm t2)
t1 - the first termt2 - the second termpublic OrTerm(SearchTerm[] t)
t - the terms| Method Detail |
public SearchTerm[] getTerms()
public boolean match(Message msg)
match in class SearchTermpublic boolean equals(java.lang.Object other)
public int hashCode()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||