Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.AddressStringTerm
javax.mail.search.RecipientStringTerm
public final class RecipientStringTerm
extends AddressStringTerm
Field Summary |
Fields inherited from class javax.mail.search.StringTerm | |
ignoreCase , pattern |
Constructor Summary | |
|
Method Summary | |
boolean |
|
Message.RecipientType |
|
int |
|
boolean |
Methods inherited from class javax.mail.search.AddressStringTerm | |
equals , match |
Methods inherited from class javax.mail.search.StringTerm | |
equals , getIgnoreCase , getPattern , hashCode , match |
Methods inherited from class javax.mail.search.SearchTerm | |
match |
public RecipientStringTerm(Message.RecipientType type, String pattern)
Constructor.
- Parameters:
type
- the recipient type
public boolean match(Message msg)
Returns true only if the address specified in this term is a substring of the recipient address in the given message.
- Overrides:
- match in interface SearchTerm