java.lang.Object | +--javax.mail.search.SearchTerm | +--javax.mail.search.FlagTerm
This class implements comparisons for Message Flags.
flags Flags object containing the flags to test. | |
set Indicates whether to test for the presence or absence of the specified Flag. |
FlagTerm(Flags flags, boolean set) Constructor. |
getFlags() Return the Flags to test. | |
getTestSet() Return true if testing whether the flags are set. | |
match(Message msg) The comparison method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
protected booleanset
true
, then test whether all the specified flags are present, else test whether all the specified flags are absent.protectedFlagsflags
publicFlagTerm(Flags flags, boolean set)
flags
- Flags object containing the flags to check forset
- the flag setting to check forpublicFlagsgetFlags()
public booleangetTestSet()
public booleanmatch(Message msg)
match
in classSearchTerm
msg
- The flag comparison is applied to this Message