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
           
 
Fields inherited from class javax.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
 
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 javax.mail.search.SearchTerm
match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

protected java.util.Date date
Constructor Detail

DateTerm

protected DateTerm(int comparison,
                   java.util.Date date)
Constructor.
Parameters:
comparison - the comparison type
Method Detail

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