javax.mail.search
Class RecipientTerm
- Serializable
public final class RecipientTerm
 This class implements comparisons for the Recipient Address headers.
RecipientTerm
public RecipientTerm(Message.RecipientType type,
                     Address address) Constructor.
- type- the recipient type
- address- the address to match for
equals
public boolean equals(Object other)
 Equality comparison.
- equals in interface AddressTerm
getRecipientType
public Message.RecipientType getRecipientType()
 Return the type of recipient to match with.
hashCode
public int hashCode()
 Compute a hashCode for this object.
- hashCode in interface AddressTerm
match
public boolean match(Message msg)
 The match method.
- match in interface SearchTerm
- msg- The address match is applied to this Message's recepient address