Movatterモバイル変換


[0]ホーム

URL:


         


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


date
           
 
Fields inherited from class javax.mail.search.ComparisonTerm
comparison,EQ,GE,GT,LE,LT,NE
 
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 javax.mail.search.SearchTerm
match
 
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]ページ先頭

©2009-2025 Movatter.jp