| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public abstract class DateTerm extends ComparisonTerm
This class implements comparisons for Dates
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 |
Constructor. |
Method Summary | |
---|---|
boolean |
Equality comparison. |
int |
Return the type of comparison. |
Date |
getDate() Return the Date to compare with. |
int |
hashCode() 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 |
---|
protected Date date
Constructor Detail |
---|
protected DateTerm(int comparison, Date date)
comparison
- the comparison typedate
- The Date to be compared againstMethod Detail |
---|
public boolean equals(Object obj)
equals
in class ComparisonTerm
obj
public int getComparison()
public Date getDate()
public int hashCode()
hashCode
in class ComparisonTerm
protected boolean match(Date d)
d
- the date in the constructor is compared with this date
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |