Home » apache-tomcat-6.0.26-src » javax » mail » search » [javadoc | source]
javax.mail.search
public final class: OrTerm [javadoc | source]
java.lang.Object
   javax.mail.search.SearchTerm
      javax.mail.search.OrTerm

All Implemented Interfaces:
    Serializable

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.
    serial:
 
Constructor:
 public OrTerm(SearchTerm[] t) 
    Constructor that takes an array of SearchTerms.
    Parameters:
    t - array of search terms
 public OrTerm(SearchTerm t1,
    SearchTerm t2) 
    Constructor that takes two operands.
    Parameters:
    t1 - first term
    t2 - second term
Method from javax.mail.search.OrTerm Summary:
equals,   getTerms,   hashCode,   match
Methods from javax.mail.search.SearchTerm:
match
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.search.OrTerm Detail:
 public boolean equals(Object obj) 
    Equality comparison.
 public SearchTerm[] getTerms() 
    Return the search terms.
 public int hashCode() 
    Compute a hashCode for this object.
 public boolean match(Message msg) 
    The OR operation.

    The terms specified in the constructor are applied to the given object and the OR operator is applied to their results.