public final class RecipientStringTerm extends AddressStringTerm
ignoreCase, pattern| Constructor and Description |
|---|
RecipientStringTerm(Message.RecipientType type,
java.lang.String pattern)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
Message.RecipientType |
getRecipientType()
Return the recipient type.
|
int |
hashCode() |
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.
|
matchgetIgnoreCase, getPattern, matchpublic RecipientStringTerm(Message.RecipientType type, java.lang.String pattern)
type - the recipient typeaddress - the address pattern for comparisonpublic Message.RecipientType getRecipientType()
public boolean match(Message msg)
match in class SearchTermpublic boolean equals(java.lang.Object other)
equals in class AddressStringTermpublic int hashCode()
hashCode in class StringTerm© Copyright 2003, 2004 The Free Software Foundation, All rights reserved