javax.mail.search
Class RecipientStringTerm
- Serializable
public final class RecipientStringTerm
A string comparison of the recipient headers in a message.
Version:
- Chris Burdess
RecipientStringTerm
public RecipientStringTerm(Message.RecipientType type,
String pattern)
Constructor.
type
- the recipient type
hashCode
public int hashCode()
- hashCode in interface StringTerm
match
public boolean match(Message msg)
Returns true only if the address specified in this term is a substring
of the recipient address in the given message.
- match in interface SearchTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved