public class NowSearchTerm
extends javax.mail.search.ComparisonTerm
SearchTerm that is based on
DateTerm that compares with current date (eg now).
This allows to compare with a dynamic derived value.| Constructor and Description |
|---|
NowSearchTerm(int comparison,
boolean sentDate,
long offset)
Constructor
|
public NowSearchTerm(int comparison,
boolean sentDate,
long offset)
comparison - the comparison operatorsentDate - true for using sent date, false for using received date.offset - an optional offset as delta from now, can be a positive or negative value, for example
to say within last 24 hours.ComparisonTermpublic boolean match(javax.mail.Message msg)
match in class javax.mail.search.SearchTermpublic boolean equals(Object o)
equals in class javax.mail.search.ComparisonTermpublic int hashCode()
hashCode in class javax.mail.search.ComparisonTermApache Camel