Package javax.mail.search
Class FlagTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.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
Return the Flags to test. -
getTestSet
public boolean getTestSet()Return 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.
-