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.
- author:
Bill
- Shannon
- author:
John
- Mani
Field Summary |
---|
protected SearchTerm[] | terms | The array of terms on which the AND operator should be
applied. |
Constructor: |
public AndTerm(SearchTerm[] t) {
terms = new SearchTerm[t.length]; // clone the array
for (int i = 0; i < t.length; i++)
terms[i] = t[i];
}
Constructor that takes an array of SearchTerms. Parameters:
t - array of terms
|
public AndTerm(SearchTerm t1,
SearchTerm t2) {
terms = new SearchTerm[2];
terms[0] = t1;
terms[1] = t2;
}
Constructor that takes two terms. Parameters:
t1 - first term
t2 - second term
|
Methods from javax.mail.search.SearchTerm: |
---|
match |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |