|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.mail.search.SearchTerm
javax.mail.search.OrTerm
public final class OrTerm
This class implements the logical OR operator on individual SearchTerms.
| 字段摘要 | |
|---|---|
protected SearchTerm[] |
terms
The array of terms on which the OR operator should be applied. |
| 构造方法摘要 | |
|---|---|
OrTerm(SearchTerm[] t)
Constructor that takes an array of SearchTerms. |
|
OrTerm(SearchTerm t1,
SearchTerm t2)
Constructor that takes two operands. |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object obj)
Equality comparison. |
SearchTerm[] |
getTerms()
Return the search terms. |
int |
hashCode()
Compute a hashCode for this object. |
boolean |
match(Message msg)
The OR operation. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected SearchTerm[] terms
| 构造方法详细信息 |
|---|
public OrTerm(SearchTerm t1,
SearchTerm t2)
t1 - first termt2 - second termpublic OrTerm(SearchTerm[] t)
t - array of search terms| 方法详细信息 |
|---|
public SearchTerm[] getTerms()
public boolean match(Message msg)
The terms specified in the constructor are applied to the given object and the OR operator is applied to their results.
SearchTerm 中的 matchmsg - The specified SearchTerms are applied to this Message
and the OR operator is applied to their results.
public boolean equals(Object obj)
Object 中的 equalspublic int hashCode()
Object 中的 hashCode
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||