javax.mail.search
Class ReceivedDateTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.ComparisonTerm
          extended by javax.mail.search.DateTerm
              extended by javax.mail.search.ReceivedDateTerm
All Implemented Interfaces:
java.io.Serializable

public final class ReceivedDateTerm
extends DateTerm

A comparison of message received dates.

Version:
1.3
Author:
Chris Burdess
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.mail.search.DateTerm
date
 
Fields inherited from class javax.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
 
Constructor Summary
ReceivedDateTerm(int comparison, java.util.Date date)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 boolean match(Message msg)
          Returns true only if the given message's received date matches this term.
 
Methods inherited from class javax.mail.search.DateTerm
getComparison, getDate, hashCode, match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceivedDateTerm

public ReceivedDateTerm(int comparison,
                        java.util.Date date)
Constructor.

Parameters:
comparison - the comparison operator
date - the date for comparison
Method Detail

match

public boolean match(Message msg)
Returns true only if the given message's received date matches this term.

Specified by:
match in class SearchTerm

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class DateTerm


© Copyright 2003, 2004 The Free Software Foundation, All rights reserved