Home » apache-tomcat-6.0.26-src » javax » mail » search » [javadoc | source]
javax.mail.search
public final class: FlagTerm [javadoc | source]
java.lang.Object
   javax.mail.search.SearchTerm
      javax.mail.search.FlagTerm

All Implemented Interfaces:
    Serializable

This class implements comparisons for Message Flags.
Field Summary
protected  boolean set    Indicates whether to test for the presence or absence of the specified Flag. If true, then test whether all the specified flags are present, else test whether all the specified flags are absent.
    serial:
 
protected  Flags flags    Flags object containing the flags to test.
    serial:
 
Constructor:
 public FlagTerm(Flags flags,
    boolean set) 
    Constructor.
    Parameters:
    flags - Flags object containing the flags to check for
    set - the flag setting to check for
Method from javax.mail.search.FlagTerm Summary:
equals,   getFlags,   getTestSet,   hashCode,   match
Methods from javax.mail.search.SearchTerm:
match
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.search.FlagTerm Detail:
 public boolean equals(Object obj) 
    Equality comparison.
 public Flags getFlags() 
    Return the Flags to test.
 public boolean getTestSet() 
    Return true if testing whether the flags are set.
 public int hashCode() 
    Compute a hashCode for this object.
 public boolean match(Message msg) 
    The comparison method.