Package jakarta.mail.search
Class ReceivedDateTerm
java.lang.Object
jakarta.mail.search.SearchTerm
jakarta.mail.search.ComparisonTerm
jakarta.mail.search.DateTerm
jakarta.mail.search.ReceivedDateTerm
- All Implemented Interfaces:
Serializable
This class implements comparisons for the Message Received date
- 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
-
ReceivedDateTerm
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 received date- Returns:
- true if the comparison succeeds, otherwise false
-
equals
Equality comparison.
-