|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.search.SearchTerm
javax.mail.search.FlagTerm
public final class FlagTerm
A comparison of message flags.
| Field Summary | |
|---|---|
protected Flags |
flags
The flags to test. |
protected boolean |
set
Indicates whether to test for the presence or absence of the specified flag. |
| Constructor Summary | |
|---|---|
FlagTerm(Flags flags,
boolean set)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
Flags |
getFlags()
Returns the flags to test. |
boolean |
getTestSet()
Indicates whether to test for the presence or the absence of the specified flags. |
int |
hashCode()
|
boolean |
match(Message msg)
Returns true if the flags in the specified message match this term. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean set
protected Flags flags
| Constructor Detail |
|---|
public FlagTerm(Flags flags,
boolean set)
flags - the flags to testset - whether to test for presence or absence of the specified
flags| Method Detail |
|---|
public Flags getFlags()
public boolean getTestSet()
public boolean match(Message msg)
match in class SearchTermpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||