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

Term that implements a logical negation.

Version:
$Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
See Also:
Serialized Form

Field Summary
protected  SearchTerm term
           
 
Constructor Summary
NotTerm(SearchTerm term)
           
 
Method Summary
 boolean equals(Object other)
           
 SearchTerm getTerm()
           
 int hashCode()
           
 boolean match(Message message)
          Checks a matching criteria defined by the concrete subclass of this Term.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

term

protected SearchTerm term
Constructor Detail

NotTerm

public NotTerm(SearchTerm term)
Method Detail

getTerm

public SearchTerm getTerm()

match

public boolean match(Message message)
Description copied from class: SearchTerm
Checks a matching criteria defined by the concrete subclass of this Term.

Specified by:
match in class SearchTerm
Parameters:
message - the message to apply the matching criteria to
Returns:
true if the matching criteria is met

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.