javax.mail.search
public final class: ReceivedDateTerm [javadoc |
source]
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.ComparisonTerm
javax.mail.search.DateTerm
javax.mail.search.ReceivedDateTerm
All Implemented Interfaces:
Serializable
This class implements comparisons for the Message Received date
- author:
Bill
- Shannon
- author:
John
- Mani
Method from javax.mail.search.ReceivedDateTerm Summary: |
---|
equals, 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.ReceivedDateTerm Detail: |
public boolean equals(Object obj) {
if (!(obj instanceof ReceivedDateTerm))
return false;
return super.equals(obj);
}
|
public boolean match(Message msg) {
Date d;
try {
d = msg.getReceivedDate();
} catch (Exception e) {
return false;
}
if (d == null)
return false;
return super.match(d);
}
|