This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.mail.search
class DateTerm

javax.mail.search.SearchTerm extended by javax.mail.search.ComparisonTerm extended by javax.mail.search.DateTerm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ReceivedDateTerm, SentDateTerm

public abstract class DateTerm
extends ComparisonTerm

This class implements comparisons for Dates

See Also (auto-generated):

Session

Folder

SearchTerm


Field Summary
protected Date date
          The date.
 
Fields inherited from class javax.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
 
Constructor Summary
protected
DateTerm(int comparison, Date date)

          Constructor.
 
Method Summary
 boolean

          Equality comparison.
 int

          Return the type of comparison.
 Date

          Return the Date to compare with.
 int

          Compute a hashCode for this object.
protected boolean

          The date comparison method.
 
Methods inherited from class javax.mail.search.ComparisonTerm
equals, hashCode
 
Methods inherited from class javax.mail.search.SearchTerm
match
 

Field Detail

date

protected Date date
The date.
Constructor Detail

DateTerm

protected DateTerm(int comparison,
                   Date date)
Constructor.

Parameters:
comparison - the comparison type
date - The Date to be compared against
Method Detail

equals

public boolean equals(Object obj)
Equality comparison.

Overrides:
equals in class ComparisonTerm
Parameters:
obj

getComparison

public int getComparison()
Return the type of comparison.


getDate

public Date getDate()
Return the Date to compare with.


hashCode

public int hashCode()
Compute a hashCode for this object.

Overrides:
hashCode in class ComparisonTerm

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


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.