NotTerm (Java EE 5)

Java EE API


javax.mail.search Class NotTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.NotTerm
All Implemented Interfaces:
Serializable

public final class NotTerm
extends SearchTerm

Extends: SearchTerm

此类实现逻辑 NEGATION 运算符。
英文文档:

This class implements the logical NEGATION operator.

Author:
Bill Shannon, John Mani
See Also:
Serialized Form

Field Summary
protected  SearchTerm
 
Constructor Summary
 
Method Summary
 boolean
 SearchTerm
 int
 boolean
 
Methods inherited from class java.lang.Object
 

Field Detail

英文文档:

term

protected SearchTerm term
The search term to negate.

Constructor Detail

public NotTerm(SearchTerm t)
英文文档:

NotTerm

public NotTerm(SearchTerm t)
Method Detail

public SearchTerm getTerm()
返回要求反的条目。
英文文档:

getTerm

public SearchTerm getTerm()
Return the term to negate.


public boolean match(Message msg)
英文文档:

match

public boolean match(Message msg)
Description copied from class: SearchTerm
This method applies a specific match criterion to the given message and returns the result.

Specified by:
match in class SearchTerm
Parameters:
msg - The match criterion is applied on this message
Returns:
true, it the match succeeds, false if the match fails

public boolean equals(Object obj)
相等性比较。
英文文档:

equals

public boolean equals(Object obj)
Equality comparison.

Overrides:
equals in class Object

public int hashCode()
计算此对象的 hashCode。
英文文档:

hashCode

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

Overrides:
hashCode in class Object


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!