java.io.SerializableAddressTerm, AndTerm, ComparisonTerm, FlagTerm, GmailMsgIdTerm, GmailThrIdTerm, ModifiedSinceTerm, NotTerm, OlderTerm, OrTerm, StringTerm, YoungerTermpublic abstract class SearchTerm
extends java.lang.Object
implements java.io.Serializable
Search-terms are represented by this class. This is an abstract class; subclasses implement specific match methods.
Search terms are serializable, which allows storing a search term between sessions. Warning: Serialized objects of this class may not be compatible with future JavaMail API releases. The current serialization support is appropriate for short term storage.
| Constructor | Description |
|---|---|
SearchTerm() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
match(Message msg) |
This method applies a specific match criterion to the given
message and returns the result.
|
public abstract boolean match(Message msg)
msg - The match criterion is applied on this messageCopyright © 2018 Oracle. All rights reserved.