javax.mail.search

Class NotTerm

public final class NotTerm extends SearchTerm

Provides the logical negation of the target term.

Version: 1.4

Author: Chris Burdess

Field Summary
protected SearchTermterm
The search term to negate.
Constructor Summary
NotTerm(SearchTerm t)
Method Summary
booleanequals(Object other)
SearchTermgetTerm()
Returns the term to negate.
inthashCode()
booleanmatch(Message msg)
Returns true only if the term specified in this term does not match the given message.

Field Detail

term

protected SearchTerm term
The search term to negate.

Constructor Detail

NotTerm

public NotTerm(SearchTerm t)

Method Detail

equals

public boolean equals(Object other)

getTerm

public SearchTerm getTerm()
Returns the term to negate.

hashCode

public int hashCode()

match

public boolean match(Message msg)
Returns true only if the term specified in this term does not match the given message.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved