javax.mail.search
Class DateTerm
- Serializable
public abstract class DateTerm
This class implements comparisons for Dates.
protected Date | date - The date.
|
DateTerm(int comparison, Date date) - Constructor.
|
boolean | equals(Object other) - 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.
|
date
protected Date date
The date.
DateTerm
protected DateTerm(int comparison,
Date date)
Constructor.
comparison
- the comparison type
getComparison
public int getComparison()
Return the type of comparison.
getDate
public Date getDate()
Return the Date to compare with.
match
protected boolean match(Date d)
The date comparison method.
d
- the date in the constructor is compared with this date
- true if the dates match, otherwise false
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved