Package jakarta.mail.search
Class FlagTerm
java.lang.Object
jakarta.mail.search.SearchTerm
jakarta.mail.search.FlagTerm
- All Implemented Interfaces:
 Serializable
This class implements comparisons for Message Flags.
- Author:
 - Bill Shannon, John Mani
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
FlagTerm
Constructor.- Parameters:
 flags- Flags object containing the flags to check forset- the flag setting to check for
 
 - 
 - 
Method Details
- 
getFlags
Return the Flags to test.- Returns:
 - the flags
 
 - 
getTestSet
public boolean getTestSet()Return true if testing whether the flags are set.- Returns:
 - true if testing whether the flags are set
 
 - 
match
The comparison method.- Specified by:
 matchin classSearchTerm- Parameters:
 msg- The flag comparison is applied to this Message- Returns:
 - true if the comparson succeeds, otherwise false.
 
 - 
equals
Equality comparison. - 
hashCode
public int hashCode()Compute a hashCode for this object. 
 -