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
equals
public boolean equals(Object other)
Equality comparison.
- equals in interface ComparisonTerm
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.
- hashCode in interface ComparisonTerm
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