Package javax.mail.search
Class DateTerm
- java.lang.Object
-
- javax.mail.search.SearchTerm
-
- javax.mail.search.ComparisonTerm
-
- javax.mail.search.DateTerm
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ReceivedDateTerm,SentDateTerm
public abstract class DateTerm extends ComparisonTerm
A date comparison.- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.DatedateThe date.-
Fields inherited from class javax.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDateTerm(int comparison, java.util.Date date)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)intgetComparison()Returns the comparison operator.java.util.DategetDate()Returns the date to compare with.inthashCode()protected booleanmatch(java.util.Date d)Returns true only if this comparison matches the supplied date.-
Methods inherited from class javax.mail.search.SearchTerm
match
-
-
-
-
Method Detail
-
getDate
public java.util.Date getDate()
Returns the date to compare with.
-
getComparison
public int getComparison()
Returns the comparison operator.
-
match
protected boolean match(java.util.Date d)
Returns true only if this comparison matches the supplied date.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classComparisonTerm
-
hashCode
public int hashCode()
- Overrides:
hashCodein classComparisonTerm
-
-