javax.mail.search
Class RecipientStringTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.AddressStringTerm
javax.mail.search.RecipientStringTerm
- All Implemented Interfaces:
- Serializable
public final class RecipientStringTerm
- extends AddressStringTerm
A string comparison of the recipient headers in a message.
- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
RecipientStringTerm
public RecipientStringTerm(Message.RecipientType type,
String pattern)
- Constructor.
- Parameters:
type
- the recipient typeaddress
- the address pattern for comparison
getRecipientType
public Message.RecipientType getRecipientType()
- Return the recipient type.
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.
- Specified by:
match
in class SearchTerm
equals
public boolean equals(Object other)
- Overrides:
equals
in class AddressStringTerm
hashCode
public int hashCode()
- Overrides:
hashCode
in class StringTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved