javax.mail.search
类 OrTerm

java.lang.Object
  继承者 javax.mail.search.SearchTerm
      继承者 javax.mail.search.OrTerm
所有已实现的接口:
Serializable

public final class OrTerm
extends SearchTerm

This class implements the logical OR operator on individual SearchTerms.

作者:
Bill Shannon, John Mani
另请参见:
序列化表格

字段摘要
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
 

字段详细信息

terms

protected SearchTerm[] terms
The array of terms on which the OR operator should be applied.

构造方法详细信息

OrTerm

public OrTerm(SearchTerm t1,
              SearchTerm t2)
Constructor that takes two operands.

参数:
t1 - first term
t2 - second term

OrTerm

public OrTerm(SearchTerm[] t)
Constructor that takes an array of SearchTerms.

参数:
t - array of search terms
方法详细信息

getTerms

public SearchTerm[] getTerms()
Return the search terms.


match

public boolean match(Message msg)
The OR operation.

The terms specified in the constructor are applied to the given object and the OR operator is applied to their results.

指定者:
SearchTerm 中的 match
参数:
msg - The specified SearchTerms are applied to this Message and the OR operator is applied to their results.
返回:
true if the OR succeds, otherwise false

equals

public boolean equals(Object obj)
Equality comparison.

覆盖:
Object 中的 equals

hashCode

public int hashCode()
Compute a hashCode for this object.

覆盖:
Object 中的 hashCode


Copyright © 2013. All Rights Reserved.