javax.mail.search
Class RecipientTerm
- Serializable
public final class RecipientTerm
A comparison of recipient headers in a message.
Version:
- Chris Burdess
RecipientTerm
public RecipientTerm(Message.RecipientType type,
Address address)
Constructor.
type
- the recipient typeaddress
- the address to match
equals
public boolean equals(Object other)
- equals in interface AddressTerm
hashCode
public int hashCode()
- hashCode in interface AddressTerm
match
public boolean match(Message msg)
Returns true only if the recipient address in the given message matches
the address specified in this term.
- match in interface SearchTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved