public final class RecipientTerm extends AddressTerm
| Modifier and Type | Field and Description |
|---|---|
protected Message.RecipientType |
type
The recipient type.
|
address| Constructor and Description |
|---|
RecipientTerm(Message.RecipientType type,
Address address)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
Message.RecipientType |
getRecipientType()
Returns the recipient type.
|
int |
hashCode() |
boolean |
match(Message msg)
Returns true only if the recipient address in the given message matches
the address specified in this term.
|
getAddress, matchprotected Message.RecipientType type
public RecipientTerm(Message.RecipientType type, Address address)
type - the recipient typeaddress - the address to matchpublic Message.RecipientType getRecipientType()
public boolean match(Message msg)
match in class SearchTermpublic boolean equals(java.lang.Object other)
equals in class AddressTermpublic int hashCode()
hashCode in class AddressTerm© Copyright 2003, 2004 The Free Software Foundation, All rights reserved