|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.search.SearchTerm javax.mail.search.AndTerm
public final class AndTerm
Term that implements a logical AND across terms.
Field Summary | |
---|---|
protected SearchTerm[] |
terms
Terms to which the AND operator should be applied. |
Constructor Summary | |
---|---|
AndTerm(SearchTerm[] terms)
Constructor for performing and AND across an arbitraty number of terms. |
|
AndTerm(SearchTerm a,
SearchTerm b)
Constructor for performing a binary AND. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
SearchTerm[] |
getTerms()
Return the terms. |
int |
hashCode()
|
boolean |
match(Message message)
Match by applying the terms, in order, to the Message and performing an AND operation to the result. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SearchTerm[] terms
Constructor Detail |
---|
public AndTerm(SearchTerm a, SearchTerm b)
a
- the first termb
- the second ter,public AndTerm(SearchTerm[] terms)
terms
- the terms to AND togetherMethod Detail |
---|
public SearchTerm[] getTerms()
public boolean match(Message message)
match
in class SearchTerm
message
- the Message to apply the terms to
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |