javax.mail.search

Class DateTerm

public abstract class DateTerm extends ComparisonTerm

A date comparison.

Version: 1.3

Author: Chris Burdess

Field Summary
protected Datedate
The date.
Constructor Summary
protected DateTerm(int comparison, Date date)
Constructor.
Method Summary
booleanequals(Object other)
intgetComparison()
Returns the comparison operator.
DategetDate()
Returns the date to compare with.
inthashCode()
protected booleanmatch(Date d)
Returns true only if this comparison matches the supplied date.

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

Method Detail

equals

public boolean equals(Object other)

getComparison

public int getComparison()
Returns the comparison operator.

getDate

public Date getDate()
Returns the date to compare with.

hashCode

public int hashCode()

match

protected boolean match(Date d)
Returns true only if this comparison matches the supplied date.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved