- java.lang.Object
-
- jakarta.mail.search.SearchTerm
-
- jakarta.mail.search.StringTerm
-
- com.sun.mail.gimap.GmailRawSearchTerm
-
- All Implemented Interfaces:
java.io.Serializable
public final class GmailRawSearchTerm extends StringTerm
This class implements searching using the Gmail X-GM-RAW extension.- Since:
- JavaMail 1.4.6
- Author:
- Bill Shannon
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jakarta.mail.search.StringTerm
ignoreCase, pattern
-
-
Constructor Summary
Constructors Constructor Description GmailRawSearchTerm(java.lang.String pattern)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Equality comparison.booleanmatch(Message msg)The match method.-
Methods inherited from class jakarta.mail.search.StringTerm
getIgnoreCase, getPattern, hashCode, match
-
-
-
-
Method Detail
-
match
public boolean match(Message msg)
The match method.- Specified by:
matchin classSearchTerm- Parameters:
msg- the pattern match is applied to this Message's subject header- Throws:
java.lang.RuntimeException- this can't be supported locally
-
equals
public boolean equals(java.lang.Object obj)
Equality comparison.- Overrides:
equalsin classStringTerm
-
-