Movatterモバイル変換
[0]ホーム
Class DateTerm
java.lang.Object | +--javax.mail.search.SearchTerm | +--javax.mail.search.ComparisonTerm | +--javax.mail.search.DateTerm
- Direct Known Subclasses:
- ReceivedDateTerm,SentDateTerm
- public abstract classDateTerm
- extendsComparisonTerm
This class implements comparisons for Dates
|
| DateTerm(int comparison, java.util.Date date) Constructor. |
|
| getComparison() Return the type of comparison. |
| getDate() Return the Date to compare with. |
| 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.Datedate
DateTerm
protectedDateTerm(int comparison, java.util.Date date)
- Constructor.
- Parameters:
comparison
- the comparison type
getDate
public java.util.DategetDate()
- Return the Date to compare with.
getComparison
public intgetComparison()
- Return the type of comparison.
match
protected booleanmatch(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
[8]ページ先頭