- java.lang.Object
- 
- jakarta.mail.search.SearchTerm
- 
- jakarta.mail.search.FlagTerm
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public final class FlagTerm extends SearchTerm This class implements comparisons for Message Flags.- Author:
- Bill Shannon, John Mani
- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Equality comparison.FlagsgetFlags()Return the Flags to test.booleangetTestSet()Return true if testing whether the flags are set.inthashCode()Compute a hashCode for this object.booleanmatch(Message msg)The comparison method.
 
- 
- 
- 
Constructor Detail- 
FlagTermpublic FlagTerm(Flags flags, boolean set) Constructor.- Parameters:
- flags- Flags object containing the flags to check for
- set- the flag setting to check for
 
 
- 
 - 
Method Detail- 
getFlagspublic Flags getFlags() Return the Flags to test.- Returns:
- the flags
 
 - 
getTestSetpublic boolean getTestSet() Return true if testing whether the flags are set.- Returns:
- true if testing whether the flags are set
 
 - 
matchpublic boolean match(Message msg) The comparison method.- Specified by:
- matchin class- SearchTerm
- Parameters:
- msg- The flag comparison is applied to this Message
- Returns:
- true if the comparson succeeds, otherwise false.
 
 - 
equalspublic boolean equals(java.lang.Object obj) Equality comparison.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Compute a hashCode for this object.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-