| 
 | J2EE1.4 SDK | |||||||||
| 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
This class implements the logical OR operator on individual SearchTerms.
| Field Summary | |
| protected  SearchTerm[] | termsThe array of terms on which the OR operator should be applied. | 
| Constructor Summary | |
| OrTerm(SearchTerm[] t)Constructor that takes an array of SearchTerms. | |
| OrTerm(SearchTerm t1,
       SearchTerm t2)Constructor that takes two operands. | |
| Method Summary | |
|  boolean | equals(java.lang.Object obj)Equality comparison. | 
|  SearchTerm[] | getTerms()Return the search terms. | 
|  int | hashCode()Compute a hashCode for this object. | 
|  boolean | match(Message msg)The OR operation. | 
| 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 - first termt2 - second termpublic OrTerm(SearchTerm[] t)
t - array of search terms| Method Detail | 
public SearchTerm[] getTerms()
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 SearchTermmsg - The specified SearchTerms are applied to this Message
			and the OR operator is applied to their results.
public boolean equals(java.lang.Object obj)
public int hashCode()
| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.