Home » apache-tomcat-6.0.26-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

This class implements the logical AND operator on individual SearchTerms.
Field Summary
protected  SearchTerm[] terms    The array of terms on which the AND operator should be applied.
    serial:
 
Constructor:
 public AndTerm(SearchTerm[] t) 
    Constructor that takes an array of SearchTerms.
    Parameters:
    t - array of terms
 public AndTerm(SearchTerm t1,
    SearchTerm t2) 
    Constructor that takes two terms.
    Parameters:
    t1 - first term
    t2 - second term
Method from javax.mail.search.AndTerm 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.AndTerm 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 AND operation.

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