站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Platform, Enterprise Edition v1.4 API Specifications

NotTerm (Java 2 Platform Ent. Ed. v1.4) - Java Platform, Enterprise Edition v1.4 API Specifications

JavaTM 2 Platform
Ent. Ed. v1.4

javax.mail.search
Class NotTerm

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

public final class NotTerm
extends SearchTerm

This class implements the logical NEGATION operator.

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

Field Summary
protected  SearchTerm term
          The search term to negate.
 
Constructor Summary
NotTerm(SearchTerm t)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

term

protected SearchTerm term
The search term to negate.

Constructor Detail

NotTerm

public NotTerm(SearchTerm t)
Method Detail

getTerm

public SearchTerm getTerm()
Return the term to negate.


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

equals

public boolean equals(Object obj)
Equality comparison.


hashCode

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


JavaTM 2 Platform
Ent. Ed. v1.4

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.