javax.mail.search
Class DateTerm
java.lang.Object
|
+--javax.mail.search.SearchTerm
|
+--javax.mail.search.ComparisonTerm
|
+--javax.mail.search.DateTerm
- Direct Known Subclasses:
- ReceivedDateTerm, SentDateTerm
- public abstract class DateTerm
- extends ComparisonTerm
This class implements comparisons for Dates
Constructor Summary |
protected |
DateTerm(int comparison,
Date date)
Constructor. |
Method Summary |
int |
getComparison()
Return the type of comparison. |
Date |
getDate()
Return the Date to compare with. |
protected boolean |
match(Date d)
The date comparison method. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
date
protected Date date
DateTerm
protected DateTerm(int comparison,
Date date)
- Constructor.
- Parameters:
comparison
- the comparison type
getDate
public Date getDate()
- Return the Date to compare with.
getComparison
public int getComparison()
- Return the type of comparison.
match
protected boolean match(Date d)
- The date comparison method.
- Parameters:
d
- the date in the constructor is compared with this date- Returns:
- true if the dates match, otherwise false