javax.mail.search
Class SubjectTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.SubjectTerm
- All Implemented Interfaces:
- Serializable
public final class SubjectTerm
- extends StringTerm
A comparison of message subject headers.
- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(Object other)
|
boolean |
match(Message msg)
Returns true only if the pattern specified in this term is a substring
of the given message's Subject header. |
SubjectTerm
public SubjectTerm(String pattern)
- Constructor.
- Parameters:
pattern
- the pattern to match
match
public boolean match(Message msg)
- Returns true only if the pattern specified in this term is a substring
of the given message's Subject header.
- Specified by:
match
in class SearchTerm
equals
public boolean equals(Object other)
- Overrides:
equals
in class StringTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved