|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.AddressStringTerm
javax.mail.search.RecipientStringTerm
public final class RecipientStringTerm
This class implements string comparisons for the Recipient Address headers.
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.
| 字段摘要 |
|---|
| 从类 javax.mail.search.StringTerm 继承的字段 |
|---|
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. |
| 从类 javax.mail.search.AddressStringTerm 继承的方法 |
|---|
match |
| 从类 javax.mail.search.StringTerm 继承的方法 |
|---|
getIgnoreCase, getPattern, match |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public 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)
SearchTerm 中的 matchmsg - The comparison is applied to this Message's recipient
address.
public boolean equals(Object obj)
AddressStringTerm 中的 equalspublic int hashCode()
StringTerm 中的 hashCode
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||