javax.mail.search

Class NotTerm

Implemented Interfaces:
Serializable

public final class NotTerm
extends SearchTerm

Provides the logical negation of the target term.
Version:
1.4
Author:
Chris Burdess

Field Summary

protected SearchTerm
term
The search term to negate.

Constructor Summary

NotTerm(SearchTerm t)

Method Summary

boolean
equals(Object other)
SearchTerm
getTerm()
Returns the term to negate.
int
hashCode()
boolean
match(Message msg)
Returns true only if the term specified in this term does not match the given message.

Methods inherited from class javax.mail.search.SearchTerm

match

Field Details

term

protected SearchTerm term
The search term to negate.

Constructor Details

NotTerm

public NotTerm(SearchTerm t)

Method Details

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.
Overrides:
match in interface SearchTerm

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved