|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.mail.search Class AndTerm
java.lang.Object javax.mail.search.SearchTerm javax.mail.search.AndTerm
- 所有已实现的接口:
- Serializable
public final class AndTerm
- extends SearchTerm
This class implements the logical AND operator on individual SearchTerms.
- 作者:
- Bill Shannon, John Mani
- 另请参见:
- Serialized Form
字段摘要 | |
---|---|
protected SearchTerm[] |
terms
The array of terms on which the AND operator should be applied. |
构造器摘要 | |
---|---|
AndTerm(SearchTerm[] t)
Constructor that takes an array of SearchTerms. |
|
AndTerm(SearchTerm t1,
SearchTerm t2)
Constructor that takes two terms. |
方法摘要 | |
---|---|
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 AND operation. |
类方法继承 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
terms
protected SearchTerm[] terms
- The array of terms on which the AND operator should be
applied.
构造器详细信息 |
---|
AndTerm
public AndTerm(SearchTerm t1, SearchTerm t2)
- Constructor that takes two terms.
- 参数:
t1
- first termt2
- second term
AndTerm
public AndTerm(SearchTerm[] t)
- Constructor that takes an array of SearchTerms.
- 参数:
t
- array of terms
方法详细信息 |
---|
getTerms
public SearchTerm[] getTerms()
- Return the search terms.
match
public boolean match(Message msg)
- The AND operation.
The terms specified in the constructor are applied to the given object and the AND operator is applied to their results.
- 规范说明:
match
in classSearchTerm
- 参数:
msg
- The specified SearchTerms are applied to this Message and the AND operator is applied to their results.- 返回:
- true if the AND succeds, otherwise false
equals
public boolean equals(Object obj)
hashCode
public int hashCode()
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.