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.AddressTerm
javax.mail.search.RecipientTerm
public final class RecipientTerm
extends AddressTerm
Field Summary | |
protected Message.RecipientType |
|
Fields inherited from class javax.mail.search.AddressTerm | |
address |
Constructor Summary | |
|
Method Summary | |
boolean |
|
Message.RecipientType |
|
int |
|
boolean |
Methods inherited from class javax.mail.search.AddressTerm | |
equals , getAddress , hashCode , match |
Methods inherited from class javax.mail.search.SearchTerm | |
match |
public RecipientTerm(Message.RecipientType type, Address address)
Constructor.
- Parameters:
type
- the recipient typeaddress
- the address to match
public boolean match(Message msg)
Returns true only if the recipient address in the given message matches the address specified in this term.
- Overrides:
- match in interface SearchTerm