public final class RecipientStringTerm extends AddressStringTerm
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.
ignoreCase, pattern| 构造器和说明 |
|---|
RecipientStringTerm(Message.RecipientType type,
String pattern)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Check whether the address specified in the constructor is
a substring of the recipient address of this Message.
|
matchgetIgnoreCase, getPattern, matchpublic RecipientStringTerm(Message.RecipientType type, String pattern)
type - the recipient typepattern - the address pattern to be compared.public Message.RecipientType getRecipientType()
public boolean match(Message msg)
match 在类中 SearchTermmsg - The comparison is applied to this Message's recipient
address.public boolean equals(Object obj)
equals 在类中 AddressStringTermpublic int hashCode()
hashCode 在类中 StringTermCopyright © 2021 Oracle. All rights reserved.