Package jakarta.mail.search
Class NotTerm
- java.lang.Object
- 
- jakarta.mail.search.SearchTerm
- 
- jakarta.mail.search.NotTerm
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public final class NotTerm extends SearchTerm This class implements the logical NEGATION operator.- Author:
- Bill Shannon, John Mani
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description NotTerm(SearchTerm t)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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- 
NotTermpublic NotTerm(SearchTerm t) 
 
- 
 - 
Method Detail- 
getTermpublic SearchTerm getTerm() Return the term to negate.- Returns:
- the Term
 
 - 
matchpublic 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 class- SearchTerm
- Parameters:
- msg- The match criterion is applied on this message
- Returns:
- true, it the match succeeds, false if the match fails
 
 
- 
 
-