IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
 
[Sommaire]  [Top 50]  [F.A.Q.]  [ Java SE ]  [ Java EE ]  [Javadoc standard]  [Contact]
[ 5.0
Rechercher   
Dans
Options   sensible à la casse
étendre la recherche aux descriptions
Préférences
fr en 
 
Moteurs de recherche
JavaTM Platform, Enterprise Edition, v 5.0

javax.mail.search
Class DateTerm

java.lang.Object
  extended by 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

Author:
Bill Shannon, John Mani
See Also:
Serialized Form

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 equals(Object obj)
          Equality comparison.
 int getComparison()
          Return the type of comparison.
 Date getDate()
          Return the Date to compare with.
 int hashCode()
          Compute a hashCode for this object.
protected  boolean match(Date d)
          The date comparison method.
 
Methods inherited from class javax.mail.search.SearchTerm
match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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

getDate

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


getComparison

public int getComparison()
Return the type of comparison.


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

equals

public boolean equals(Object obj)
Equality comparison.

Overrides:
equals in class ComparisonTerm

hashCode

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

Overrides:
hashCode in class ComparisonTerm

Copyright 2003 Sun Microsystems, Inc. All rights reserved