Note that this class differs from the RecipientTerm
class
in that this class does comparisons on address strings rather than Address
objects. The string comparisons are case-insensitive.
Modifier and Type | Field and Description |
---|---|
private static final long | |
private Message. | type
The recipient type. |
Access | Constructor and Description |
---|---|
public | RecipientStringTerm(Message.
the recipient type type,the address pattern to be compared. pattern)Constructor. |
Modifier and Type | Method and Description |
---|---|
public boolean | equals(Object
the reference object with which to compare. obj)Overrides jakarta. |
public Message. | |
public int | |
public boolean | Returns: true if the match succeeds, otherwise false.The comparison is applied to this Message's recipient
address. msg)Implements abstract jakarta. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides jakarta. |
type | back to summary |
---|---|
private Message. The recipient type. |
RecipientStringTerm | back to summary |
---|---|
public RecipientStringTerm(Message. Constructor.
|
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides jakarta. Equality comparison.
|
getRecipientType | back to summary |
---|---|
public Message. Return the type of recipient to match with.
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides jakarta. Compute a hashCode for this object.
|
match | back to summary |
---|---|
public boolean match(Message msg) Implements abstract jakarta. Check whether the address specified in the constructor is a substring of the recipient address of this Message. |