Top Description Fields Constructors Methods
javax.mail.search

public final Class NotTerm

extends SearchTerm
Class Inheritance
Imports
javax.mail.Message

This class implements the logical NEGATION operator.
Authors
Bill Shannon, John Mani

Field Summary

Modifier and TypeField and Description
private static final long
private SearchTerm
term

The search term to negate.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Equality comparison.
public SearchTerm

Returns:

the Term
getTerm
()

Return the term to negate.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Compute a hashCode for this object.
public boolean
match(Message
The match criterion is applied on this message
msg
)

Implements abstract javax.mail.search.SearchTerm.match.

This method applies a specific match criterion to the given message and returns the result.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.mail.search.SearchTerm.serialVersionUID.

termback to summary
private SearchTerm term

The search term to negate.

Constructor Detail

NotTermback to summary
public NotTerm(SearchTerm t)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Equality comparison.

Parameters
obj:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getTermback to summary
public SearchTerm getTerm()

Return the term to negate.

Returns:SearchTerm

the Term

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Compute a hashCode for this object.

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object.

Annotations
@Override
matchback to summary
public boolean match(Message msg)

Implements abstract javax.mail.search.SearchTerm.match.

Doc from javax.mail.search.SearchTerm.match.

This method applies a specific match criterion to the given message and returns the result.

Parameters
msg:Message

The match criterion is applied on this message

Returns:boolean

true, it the match succeeds, false if the match fails

Annotations
@Override