| 
|||||||||
| 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
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 | |
|---|---|
FlagTerm(Flags flags,
         boolean set)
Constructor.  | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(java.lang.Object obj)
Equality comparison.  | 
 Flags | 
getFlags()
Return the Flags to test.  | 
 boolean | 
getTestSet()
Return true if testing whether the flags are set.  | 
 int | 
hashCode()
Compute a hashCode for this object.  | 
 boolean | 
match(Message msg)
The comparison method.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected boolean set
true,
 then test whether all the specified flags are present, else
 test whether all the specified flags are absent.
protected Flags flags
| Constructor Detail | 
|---|
public FlagTerm(Flags flags,
                boolean set)
flags - Flags object containing the flags to check forset - the flag setting to check for| Method Detail | 
|---|
public Flags getFlags()
public boolean getTestSet()
public boolean match(Message msg)
match in class SearchTermmsg - The flag comparison is applied to this Message
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41