|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.search.SearchTerm javax.mail.search.AddressTerm javax.mail.search.RecipientTerm
public final class RecipientTerm
This class implements comparisons for the Recipient Address headers.
Field Summary | |
---|---|
protected Message.RecipientType |
type
The recipient type. |
Fields inherited from class javax.mail.search.AddressTerm |
---|
address |
Constructor Summary | |
---|---|
RecipientTerm(Message.RecipientType type,
Address address)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Equality comparison. |
Message.RecipientType |
getRecipientType()
Return the type of recipient to match with. |
int |
hashCode()
Compute a hashCode for this object. |
boolean |
match(Message msg)
The match method. |
Methods inherited from class javax.mail.search.AddressTerm |
---|
getAddress, match |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Message.RecipientType type
Constructor Detail |
---|
public RecipientTerm(Message.RecipientType type, Address address)
type
- the recipient typeaddress
- the address to match forMethod Detail |
---|
public Message.RecipientType getRecipientType()
public boolean match(Message msg)
match
in class SearchTerm
msg
- The address match is applied to this Message's recepient
address
public boolean equals(java.lang.Object obj)
equals
in class AddressTerm
public int hashCode()
hashCode
in class AddressTerm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41