| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public final class OrTerm extends SearchTerm
This class implements the logical OR operator on individual SearchTerms.
Field Summary | |
---|---|
protected SearchTerm[] |
terms
The array of terms on which the OR operator should be applied. |
Constructor Summary | |
---|---|
OrTerm(SearchTerm t1, SearchTerm t2) Constructor that takes two operands. |
|
OrTerm(SearchTerm[] t) Constructor that takes an array of SearchTerms. |
Method Summary | |
---|---|
boolean |
Equality comparison. |
SearchTerm[] |
getTerms() Return the search terms. |
int |
hashCode() Compute a hashCode for this object. |
boolean |
The OR operation. |
Methods inherited from class javax.mail.search.SearchTerm |
---|
match |
Field Detail |
---|
protected SearchTerm[] terms
Constructor Detail |
---|
public OrTerm(SearchTerm t1, SearchTerm t2)
t1
- first termt2
- second termpublic OrTerm(SearchTerm[] t)
t
- array of search termsMethod Detail |
---|
public boolean equals(Object obj)
equals
in class Object
obj
public SearchTerm[] getTerms()
public int hashCode()
hashCode
in class Object
public boolean match(Message msg)
The terms specified in the constructor are applied to the given object and the OR operator is applied to their results.
match
in class SearchTerm
msg
- The specified SearchTerms are applied to this Message
and the OR operator is applied to their results.
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |