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(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, match
protected Message.RecipientType type
public 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 SearchTerm
msg
- The address match is applied to this Message's recepient
addresspublic boolean equals(Object obj)
equals
in class AddressTerm
public int hashCode()
hashCode
in class AddressTerm
Copyright © 2018 JBoss by Red Hat. All rights reserved.