javax.mail.search
Class SubjectTerm
- Serializable
public final class SubjectTerm
This class implements comparisons for the Message Subject header.
The comparison is case-insensitive.
boolean | equals(Object other) - Equality comparison.
|
boolean | match(Message msg) - The match method.
|
SubjectTerm
public SubjectTerm(String pattern)
Constructor.
pattern
- the pattern to search for
equals
public boolean equals(Object other)
Equality comparison.
- equals in interface StringTerm
match
public boolean match(Message msg)
The match method.
- match in interface SearchTerm
msg
- the pattern match is applied to this Message's subject header
- true if the pattern match succeeds, otherwise false