FileDocCategorySizeDatePackage
NotTerm.javaAPI DocGlassfish v2 API2960Mon May 14 15:28:50 BST 2007javax.mail.search

NotTerm

public final class NotTerm extends SearchTerm
This class implements the logical NEGATION operator.
author
Bill Shannon
author
John Mani

Fields Summary
protected SearchTerm
term
The search term to negate.
private static final long
serialVersionUID
Constructors Summary
public NotTerm(SearchTerm t)


       
	term = t;
    
Methods Summary
public booleanequals(java.lang.Object obj)
Equality comparison.

	if (!(obj instanceof NotTerm))
	    return false;
	NotTerm nt = (NotTerm)obj;
	return nt.term.equals(this.term);
    
public javax.mail.search.SearchTermgetTerm()
Return the term to negate.

	return term;
    
public inthashCode()
Compute a hashCode for this object.

	return term.hashCode() << 1;
    
public booleanmatch(javax.mail.Message msg)

	return !term.match(msg);