| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public final class FlagTerm extends SearchTerm
This class implements comparisons for Message Flags.
Field Summary | |
---|---|
protected Flags |
flags
Flags object containing the flags to test. |
protected boolean |
set
Indicates whether to test for the presence or absence of the specified Flag. |
Constructor Summary | |
---|---|
Constructor. |
Method Summary | |
---|---|
boolean |
Equality comparison. |
Flags |
getFlags() Return the Flags to test. |
boolean |
Return true if testing whether the flags are set. |
int |
hashCode() Compute a hashCode for this object. |
boolean |
The comparison method. |
Methods inherited from class javax.mail.search.SearchTerm |
---|
match |
Field Detail |
---|
protected Flags flags
protected boolean set
true
,
then test whether all the specified flags are present, else
test whether all the specified flags are absent.
Constructor Detail |
---|
public FlagTerm(Flags flags, boolean set)
flags
- Flags object containing the flags to check forset
- the flag setting to check forMethod Detail |
---|
public boolean equals(Object obj)
equals
in class Object
obj
public Flags getFlags()
public boolean getTestSet()
public int hashCode()
hashCode
in class Object
public boolean match(Message msg)
match
in class SearchTerm
msg
- The flag comparison is applied to this Message
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |