FileDocCategorySizeDatePackage
NotTerm.javaAPI DocJavaMail 1.4.32918Tue Nov 17 10:38:12 GMT 2009javax.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);