Save This Page
Home » apache-tomcat-6.0.16-src » javax » mail » search » [javadoc | source]
javax.mail.search
public final class: AndTerm [javadoc | source]
java.lang.Object
   javax.mail.search.SearchTerm
      javax.mail.search.AndTerm

All Implemented Interfaces:
    Serializable

Term that implements a logical AND across terms.
Field Summary
protected  SearchTerm[] terms    Terms to which the AND operator should be applied. 
Constructor:
 public AndTerm(SearchTerm[] terms) 
    Constructor for performing and AND across an arbitraty number of terms.
    Parameters:
    terms - the terms to AND together
 public AndTerm(SearchTerm a,
    SearchTerm b) 
    Constructor for performing a binary AND.
    Parameters:
    a - the first term
    b - the second ter,
Method from javax.mail.search.AndTerm Summary:
equals,   getTerms,   hashCode,   match
Methods from javax.mail.search.SearchTerm:
match
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.search.AndTerm Detail:
 public boolean equals(Object other) 
 public SearchTerm[] getTerms() 
    Return the terms.
 public int hashCode() 
 public boolean match(Message message) 
    Match by applying the terms, in order, to the Message and performing an AND operation to the result. Comparision will stop immediately if one of the terms returns false.