javax.mail.search
Class FromStringTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.AddressStringTerm
javax.mail.search.FromStringTerm
- All Implemented Interfaces:
- Serializable
public final class FromStringTerm
- extends AddressStringTerm
A string comparison of the From address header.
- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(Object other)
|
boolean |
match(Message msg)
Indicates whether the address pattern specified in the constructor is a
substring of the string representation of the From address in the given
message. |
FromStringTerm
public FromStringTerm(String pattern)
- Constructor.
- Parameters:
address
- the address pattern for comparison
match
public boolean match(Message msg)
- Indicates whether the address pattern specified in the constructor is a
substring of the string representation of the From address in the given
message.
- Specified by:
match
in class SearchTerm
- Parameters:
msg
- the message
equals
public boolean equals(Object other)
- Overrides:
equals
in class AddressStringTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved