Package jakarta.mail.search
Class SubjectTerm
java.lang.Object
jakarta.mail.search.SearchTerm
jakarta.mail.search.StringTerm
jakarta.mail.search.SubjectTerm
- All Implemented Interfaces:
Serializable
This class implements comparisons for the message Subject header.
The comparison is case-insensitive. The pattern is a simple string
that must appear as a substring in the Subject.
- Author:
- Bill Shannon, John Mani
- See Also:
-
Field Summary
Fields inherited from class jakarta.mail.search.StringTerm
ignoreCase, pattern
-
Constructor Summary
-
Method Summary
Methods inherited from class jakarta.mail.search.StringTerm
getIgnoreCase, getPattern, hashCode, match
-
Constructor Details
-
SubjectTerm
Constructor.- Parameters:
pattern
- the pattern to search for
-
-
Method Details
-
match
The match method.- Specified by:
match
in classSearchTerm
- Parameters:
msg
- the pattern match is applied to this Message's subject header- Returns:
- true if the pattern match succeeds, otherwise false
-
equals
Equality comparison.- Overrides:
equals
in classStringTerm
-