javax.mail.search
Class SubjectTerm
java.lang.Object
|
+--javax.mail.search.SearchTerm
|
+--javax.mail.search.StringTerm
|
+--javax.mail.search.SubjectTerm
- public final class SubjectTerm
- extends StringTerm
This class implements comparisons for the Message Subject header.
The comparison is case-insensitive.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubjectTerm
public SubjectTerm(String pattern)
- Constructor.
- Parameters:
pattern
- the pattern to search for
match
public boolean match(Message msg)
- The match method.
- Overrides:
match
in class SearchTerm
- Parameters:
msg
- the pattern match is applied to this Message's
subject header- Returns:
- true if the pattern match succeeds, otherwise false