⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.mail.search

Class ReceivedDateTerm

java.lang.Object
|
+--javax.mail.search.SearchTerm
   |
   +--javax.mail.search.ComparisonTerm
      |
      +--javax.mail.search.DateTerm
         |
         +--javax.mail.search.ReceivedDateTerm


public final class ReceivedDateTerm
extends DateTerm

This class implements comparisons for the Message Received date
Author:

Constructor Summary

ReceivedDateTerm(int comparison, Date date)

Constructor.

Method Summary

boolean

equals(Object other)

Equality comparison.

boolean

match(Message msg)

The match method.

Constructor Details

ReceivedDateTerm

public ReceivedDateTerm(int comparison, Date date)

Constructor.

Parameters:
comparison - the Comparison type
date - the date to be compared

Method Details

equals

public boolean equals(Object other)

Equality comparison.

Parameters:
other

match

public boolean match(Message msg)

The match method.

Parameters:
msg - the date comparator is applied to this Message's sent date
Returns:
true if the comparison succeeds, otherwise false