Package javax.mail.search
Class NotTerm
- java.lang.Object
-
- javax.mail.search.SearchTerm
-
- javax.mail.search.NotTerm
-
- All Implemented Interfaces:
java.io.Serializable
public final class NotTerm extends SearchTerm
Provides the logical negation of the target term.- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SearchTermtermThe search term to negate.
-
Constructor Summary
Constructors Constructor Description NotTerm(SearchTerm t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.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
-
getTerm
public SearchTerm getTerm()
Returns the term to negate.
-
match
public boolean match(Message msg)
Returns true only if the term specified in this term does not match the given message.- Specified by:
matchin classSearchTerm
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-