javax.mail.search
Class FlagTerm
- Serializable
public final class FlagTerm
Term for matching message
Flags
.
protected Flags | flags - The flags to test.
|
protected boolean | set - If true, test that all flags are set; if false, test that all flags are clear.
|
flags
protected Flags flags
The flags to test.
set
protected boolean set
If true, test that all flags are set; if false, test that all flags are clear.
FlagTerm
public FlagTerm(Flags flags,
boolean set)
flags
- the flags to testset
- test for set or clear; set
equals
public boolean equals(Object other)
getFlags
public Flags getFlags()
getTestSet
public boolean getTestSet()
hashCode
public int hashCode()
match
public boolean match(Message message)
Checks a matching criteria defined by the concrete subclass of this Term.
- match in interface SearchTerm
message
- the message to apply the matching criteria to
- true if the matching criteria is met