public abstract class

DateTerm

extends ComparisonTerm
java.lang.Object
   ↳ com.google.code.javax.mail.search.SearchTerm
     ↳ com.google.code.javax.mail.search.ComparisonTerm
       ↳ com.google.code.javax.mail.search.DateTerm
Known Direct Subclasses

Class Overview

This class implements comparisons for Dates

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.search.ComparisonTerm
From class com.google.code.javax.mail.search.SearchTerm
Fields
protected Date date The date.
[Expand]
Inherited Fields
From class com.google.code.javax.mail.search.ComparisonTerm
Protected Constructors
DateTerm(int comparison, Date date)
Constructor.
Public Methods
boolean equals(Object obj)
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 Methods
boolean match(Date d)
The date comparison method.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.search.ComparisonTerm
From class com.google.code.javax.mail.search.SearchTerm
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 4818873430063720043 (0x42e013da6884266b)

Fields

protected Date date

The date.

Protected Constructors

protected DateTerm (int comparison, Date date)

Constructor.

Parameters
comparison The comparison type
date The Date to be compared against

Public Methods

public boolean equals (Object obj)

Equality comparison.

Parameters
obj

public int getComparison ()

Return the type of comparison.

public Date getDate ()

Return the Date to compare with.

public int hashCode ()

Compute a hashCode for this object.

Protected Methods

protected boolean match (Date d)

The date comparison method.

Parameters
d The date in the constructor is compared with this date
Returns
  • true if the dates match, otherwise false