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
This class implements comparisons for Dates- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Equality comparison.int
getComparison()
Return the type of comparison.java.util.Date
getDate()
Return the Date to compare with.int
hashCode()
Compute a hashCode for this object.-
Methods inherited from class javax.mail.search.SearchTerm
match
-
-
-
-
Method Detail
-
getDate
public java.util.Date getDate()
Return the Date to compare with.- Returns:
- the date
-
getComparison
public int getComparison()
Return the type of comparison.- Returns:
- the comparison type
-
equals
public boolean equals(java.lang.Object obj)
Equality comparison.- Overrides:
equals
in classComparisonTerm
-
hashCode
public int hashCode()
Compute a hashCode for this object.- Overrides:
hashCode
in classComparisonTerm
-
-