javax.mail.search
public final class: NotTerm [javadoc |
source]
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.NotTerm
All Implemented Interfaces:
Serializable
This class implements the logical NEGATION operator.
- author:
Bill
- Shannon
- author:
John
- Mani
Field Summary |
---|
protected SearchTerm | term | The search term to negate. |
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.NotTerm Detail: |
public boolean equals(Object obj) {
if (!(obj instanceof NotTerm))
return false;
NotTerm nt = (NotTerm)obj;
return nt.term.equals(this.term);
}
|
public SearchTerm getTerm() {
return term;
}
Return the term to negate. |
public int hashCode() {
return term.hashCode() < < 1;
}
Compute a hashCode for this object. |
public boolean match(Message msg) {
return !term.match(msg);
}
|