javax.mail.search
public abstract class DateTerm extends ComparisonTerm
Modifier and Type | Field and Description |
---|---|
protected Date |
date
The date.
|
comparison, EQ, GE, GT, LE, LT, NE
Modifier | Constructor and Description |
---|---|
protected |
DateTerm(int comparison,
Date date)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
getComparison()
Returns the comparison operator.
|
Date |
getDate()
Returns the date to compare with.
|
int |
hashCode() |
protected boolean |
match(Date d)
Returns true only if this comparison matches the supplied date.
|
match
protected Date date
protected DateTerm(int comparison, Date date)
comparison
- the comparison typedate
- the datepublic Date getDate()
public int getComparison()
protected boolean match(Date d)
public boolean equals(Object other)
equals
in class ComparisonTerm
public int hashCode()
hashCode
in class ComparisonTerm
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved