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
Field Summary |
protected java.util.Date |
date
|
Constructor Summary |
protected |
DateTerm(int comparison,
java.util.Date date)
Constructor. |
Method Summary |
int |
getComparison()
Return the type of comparison. |
java.util.Date |
getDate()
Return the Date to compare with. |
protected boolean |
match(java.util.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 java.util.Date date
DateTerm
protected DateTerm(int comparison,
java.util.Date date)
- Constructor.
- Parameters:
comparison
- the comparison type
getDate
public java.util.Date getDate()
- Return the Date to compare with.
getComparison
public int getComparison()
- Return the type of comparison.
match
protected boolean match(java.util.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