javax.mail.search
类 NotTerm

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

public final class NotTerm
extends SearchTerm

This class implements the logical NEGATION operator.

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

字段摘要
protected  SearchTerm term
          The search term to negate.
 
构造方法摘要
NotTerm(SearchTerm t)
           
 
方法摘要
 boolean equals(Object obj)
          Equality comparison.
 SearchTerm getTerm()
          Return the term to negate.
 int hashCode()
          Compute a hashCode for this object.
 boolean match(Message msg)
          This method applies a specific match criterion to the given message and returns the result.
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

term

protected SearchTerm term
The search term to negate.

构造方法详细信息

NotTerm

public NotTerm(SearchTerm t)
方法详细信息

getTerm

public SearchTerm getTerm()
Return the term to negate.


match

public boolean match(Message msg)
从类 SearchTerm 复制的描述
This method applies a specific match criterion to the given message and returns the result.

指定者:
SearchTerm 中的 match
参数:
msg - The match criterion is applied on this message
返回:
true, it the match succeeds, false if the match fails

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.