Package jakarta.mail.search
Class SentDateTerm
java.lang.Object
jakarta.mail.search.SearchTerm
jakarta.mail.search.ComparisonTerm
jakarta.mail.search.DateTerm
jakarta.mail.search.SentDateTerm
- All Implemented Interfaces:
Serializable
This class implements comparisons for the Message SentDate.
- Author:
- Bill Shannon, John Mani
- See Also:
-
Field Summary
Fields inherited from class jakarta.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
-
Constructor Summary
-
Method Summary
Methods inherited from class jakarta.mail.search.DateTerm
getComparison, getDate, hashCode, match
-
Constructor Details
-
SentDateTerm
Constructor.- Parameters:
comparison
- the Comparison typedate
- the date to be compared
-
-
Method Details
-
match
The match method.- Specified by:
match
in classSearchTerm
- Parameters:
msg
- the date comparator is applied to this Message's sent date- Returns:
- true if the comparison succeeds, otherwise false
-
equals
Equality comparison.
-