public final class RecipientTerm extends AddressTerm
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, match clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitpublic 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 SearchTerm public boolean equals(java.lang.Object other)
equals in class AddressTerm public int hashCode()
hashCode in class AddressTerm