com.hs.mail.imap.message.search
Class FlagKey

java.lang.Object
  extended by com.hs.mail.imap.message.search.SearchKey
      extended by com.hs.mail.imap.message.search.FlagKey

public final class FlagKey
extends SearchKey

This class implements search-criteria for Message Flag.

Since:
Jan 30, 2010
Author:
Won Chul Doh

Field Summary
protected  javax.mail.Flags.Flag flag
          Flag object containing the flag to test.
protected  boolean set
          Indicates whether to test for the presence or absence of the specified Flag.
 
Constructor Summary
FlagKey(javax.mail.Flags.Flag flag, boolean set)
           
 
Method Summary
 boolean equals(Object obj)
           
 javax.mail.Flags.Flag getFlag()
           
 int hashCode()
           
 boolean isComposite()
           
 boolean isSet()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

set

protected boolean set
Indicates whether to test for the presence or absence of the specified Flag. If true, then test whether the specified flag is present, else test whether the specified flag is absent.


flag

protected javax.mail.Flags.Flag flag
Flag object containing the flag to test.

Constructor Detail

FlagKey

public FlagKey(javax.mail.Flags.Flag flag,
               boolean set)
Method Detail

getFlag

public javax.mail.Flags.Flag getFlag()

isSet

public boolean isSet()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isComposite

public boolean isComposite()
Specified by:
isComposite in class SearchKey


Copyright © 2011. All Rights Reserved.