java.lang.Object
jakarta.mail.search.SearchTerm
jakarta.mail.search.FlagTerm
- All Implemented Interfaces:
Serializable
This class implements comparisons for Message Flags.
- See Also:
-
Constructor Summary
-
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
-
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:
match
in classSearchTerm
- Parameters:
msg
- The flag comparison is applied to this Message- Returns:
- true if the comparson succeeds, otherwise false.
-
equals
-
hashCode
-