javax.mail.search
Class SearchTerm
java.lang.Object
javax.mail.search.SearchTerm
- Serializable
public abstract class SearchTerm
extends java.lang.Object
implements Serializable
Base class for Terms in a parse tree used to represent a search condition.
This class is Serializable to allow for the short term persistence of
searches between Sessions; this is not intended for long-term persistence.
abstract boolean | match(Message message) - Checks a matching criteria defined by the concrete subclass of this Term.
|
match
public abstract boolean match(Message message)
Checks a matching criteria defined by the concrete subclass of this Term.
message
- the message to apply the matching criteria to
- true if the matching criteria is met