javax.mail.search

Class NotTerm

Implemented Interfaces:
Serializable

public final class NotTerm
extends SearchTerm

This class implements the logical NEGATION operator.

Field Summary

protected SearchTerm
term
The search term to negate.

Constructor Summary

NotTerm(SearchTerm t)

Method Summary

boolean
equals(Object other)
Equality comparison.
SearchTerm
getTerm()
Return the term to negate.
int
hashCode()
Compute a hashCode for this object.
boolean
match(Message msg)

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)
Equality comparison.


getTerm

public SearchTerm getTerm()
Return the term to negate.


hashCode

public int hashCode()
Compute a hashCode for this object.


match

public boolean match(Message msg)
Overrides:
match in interface SearchTerm