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
This class implements the logical NEGATION operator.- See Also:
 - Serialized Form
 
 
- 
- 
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 obj)Equality comparison.SearchTermgetTerm()Return the term to negate.inthashCode()Compute a hashCode for this object.booleanmatch(Message msg)This method applies a specific match criterion to the given message and returns the result. 
 - 
 
- 
- 
Constructor Detail
- 
NotTerm
public NotTerm(SearchTerm t)
 
 - 
 
- 
Method Detail
- 
getTerm
public SearchTerm getTerm()
Return the term to negate.- Returns:
 - the Term
 
 
- 
match
public boolean match(Message msg)
Description copied from class:SearchTermThis method applies a specific match criterion to the given message and returns the result.- Specified by:
 matchin classSearchTerm- Parameters:
 msg- The match criterion is applied on this message- Returns:
 - true, it the match succeeds, false if the match fails
 
 
- 
equals
public boolean equals(java.lang.Object obj)
Equality comparison.- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
Compute a hashCode for this object.- Overrides:
 hashCodein classjava.lang.Object
 
 - 
 
 -