java.lang.Object
jakarta.mail.search.SearchTerm
jakarta.mail.search.FlagTerm
- All Implemented Interfaces:
Serializable
This class implements comparisons for Message Flags.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Flags
Flags object containing the flags to test.private static final long
private boolean
Indicates whether to test for the presence or absence of the specified Flag. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
set
private boolean setIndicates whether to test for the presence or absence of the specified Flag. Iftrue
, then test whether all the specified flags are present, else test whether all the specified flags are absent. -
flags
Flags object containing the flags to test. -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
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:
match
in 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.
-