javax.mail.search

Class ReceivedDateTerm

Implemented Interfaces:
Serializable

public final class ReceivedDateTerm
extends DateTerm

A comparison of message received dates.
Version:
1.4
Author:
Chris Burdess

Field Summary

Fields inherited from class javax.mail.search.DateTerm

date

Fields inherited from class javax.mail.search.ComparisonTerm

EQ, GE, GT, LE, LT, NE, comparison

Constructor Summary

ReceivedDateTerm(int comparison, Date date)
Constructor.

Method Summary

boolean
equals(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

equals, getComparison, getDate, hashCode, match

Methods inherited from class javax.mail.search.ComparisonTerm

equals, hashCode

Methods inherited from class javax.mail.search.SearchTerm

match

Constructor Details

ReceivedDateTerm

public ReceivedDateTerm(int comparison,
                        Date date)
Constructor.
Parameters:
comparison - the comparison operator
date - the date for comparison

Method Details

equals

public boolean equals(Object other)
Overrides:
equals in interface DateTerm

match

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

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