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

public final Class ModifiedSinceTerm

extends SearchTerm
Class Inheritance
Imports
javax.mail.Message, javax.mail.search.SearchTerm

Find messages that have been modified since a given MODSEQ value. Relies on the server implementing the CONDSTORE extension (RFC 4551).
Author
Bill Shannon
Since
JavaMail 1.5.1

Field Summary

Modifier and TypeField and Description
private long
private static final long

Constructor Summary

AccessConstructor and Description
public
ModifiedSinceTerm(long
modification sequence number
modseq
)

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 long

Returns:

the modseq
getModSeq
()

Return the modseq.

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 MODSEQ
msg
)

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

The match method.

Field Detail

modseqback to summary
private long modseq
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.mail.search.SearchTerm.serialVersionUID.

Constructor Detail

ModifiedSinceTermback to summary
public ModifiedSinceTerm(long modseq)

Constructor.

Parameters
modseq:long

modification sequence number

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
getModSeqback to summary
public long getModSeq()

Return the modseq.

Returns:long

the modseq

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 MODSEQ

Returns:boolean

true if the comparison succeeds, otherwise false

Annotations
@Override