| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjavax.mail.search.SearchTermjavax.mail.search.StringTermjavax.mail.search.AddressStringTermjavax.mail.search.RecipientStringTermpublic final class RecipientStringTermextends AddressStringTermField 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