javax.mail.search
Class ReceivedDateTerm
- Serializable
public final class ReceivedDateTerm
This class implements comparisons for the Message Received date
boolean | equals(Object other) - Equality comparison.
|
boolean | match(Message msg) - The match method.
|
ReceivedDateTerm
public ReceivedDateTerm(int comparison,
Date date)
Constructor.
comparison
- the Comparison typedate
- the date to be compared
equals
public boolean equals(Object other)
Equality comparison.
- equals in interface DateTerm
match
public boolean match(Message msg)
The match method.
- match in interface SearchTerm
msg
- the date comparator is applied to this Message's sent date
- true if the comparison succeeds, otherwise false