javax.mail.search
Class AndTerm
- Serializable
public final class AndTerm
A logical AND of a number of search terms.
terms
protected SearchTerm[] terms
The target terms.
AndTerm
public AndTerm(SearchTerm t1,
SearchTerm t2)
Constructor with two terms.
t1
- the first termt2
- the second term
AndTerm
public AndTerm(SearchTerm[] t)
Constructor with multiple terms.
equals
public boolean equals(Object other)
getTerms
public SearchTerm[] getTerms()
Returns the search terms.
hashCode
public int hashCode()
match
public boolean match(Message message)
Returns true only if all the terms match the specified message.
- match in interface SearchTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved