java.io.Serializablepublic final class RecipientTerm extends AddressTerm
address| Constructor | Description |
|---|---|
RecipientTerm(Message.RecipientType type,
Address address) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
Equality comparison.
|
Message.RecipientType |
getRecipientType() |
Return the type of recipient to match with.
|
int |
hashCode() |
Compute a hashCode for this object.
|
boolean |
match(Message msg) |
The match method.
|
getAddress, matchpublic RecipientTerm(Message.RecipientType type, Address address)
type - the recipient typeaddress - the address to match forpublic Message.RecipientType getRecipientType()
public boolean match(Message msg)
match in class SearchTermmsg - The address match is applied to this Message's recepient
addresspublic boolean equals(java.lang.Object obj)
equals in class AddressTermpublic int hashCode()
hashCode in class AddressTermCopyright © 2018 Oracle. All rights reserved.