- java.lang.Object
- 
- jakarta.mail.search.SearchTerm
- 
- jakarta.mail.search.StringTerm
- 
- jakarta.mail.search.SubjectTerm
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public final class SubjectTerm extends StringTerm 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:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class jakarta.mail.search.StringTermignoreCase, pattern
 
- 
 - 
Constructor SummaryConstructors Constructor Description SubjectTerm(java.lang.String pattern)Constructor.
 - 
Method SummaryAll 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.StringTermgetIgnoreCase, getPattern, hashCode, match
 
- 
 
- 
- 
- 
Method Detail- 
matchpublic boolean match(Message msg) The match method.- Specified by:
- matchin class- SearchTerm
- Parameters:
- msg- the pattern match is applied to this Message's subject header
- Returns:
- true if the pattern match succeeds, otherwise false
 
 - 
equalspublic boolean equals(java.lang.Object obj) Equality comparison.- Overrides:
- equalsin class- StringTerm
 
 
- 
 
-