|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.mail.search
|
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(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(Object obj)
equals
in class AddressTerm
public int hashCode()
hashCode
in class AddressTerm