Top Description Fields Constructors Methods
com.sun.mail.imap

public final Class OlderTerm

extends SearchTerm
Class Inheritance
Imports
java.util.Date, javax.mail.Message, javax.mail.search.SearchTerm

Find messages that are older than a given interval (in seconds). Relies on the server implementing the WITHIN search extension (RFC 5032).
Author
Bill Shannon
Since
JavaMail 1.5.1

Field Summary

Modifier and TypeField and Description
private int
private static final long

Constructor Summary

AccessConstructor and Description
public
OlderTerm(int
number of seconds older
interval
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Equality comparison.
public int

Returns:

the interval
getInterval
()

Return the interval.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Compute a hashCode for this object.
public boolean

Returns:

true if the comparison succeeds, otherwise false
match
(Message
the date comparator is applied to this Message's received date
msg
)

Implements abstract javax.mail.search.SearchTerm.match.

The match method.

Field Detail

intervalback to summary
private int interval
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.mail.search.SearchTerm.serialVersionUID.

Constructor Detail

OlderTermback to summary
public OlderTerm(int interval)

Constructor.

Parameters
interval:int

number of seconds older

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Equality comparison.

Parameters
obj:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getIntervalback to summary
public int getInterval()

Return the interval.

Returns:int

the interval

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Compute a hashCode for this object.

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object.

Annotations
@Override
matchback to summary
public boolean match(Message msg)

Implements abstract javax.mail.search.SearchTerm.match.

The match method.

Parameters
msg:Message

the date comparator is applied to this Message's received date

Returns:boolean

true if the comparison succeeds, otherwise false

Annotations
@Override