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

java.lang.Object
  extended by com.hs.mail.imap.message.search.SearchKey
      extended by com.hs.mail.imap.message.search.StringKey
Direct Known Subclasses:
AddressStringKey, HeaderKey, KeywordKey, SubjectKey, TextKey

public abstract class StringKey
extends SearchKey

This class implements search-criteria for Strings.

Since:
Jan 30, 2010
Author:
Won Chul Doh

Field Summary
protected  boolean ignoreCase
          Ignore case when comparing?
protected  String pattern
          The pattern.
 
Constructor Summary
protected StringKey(String pattern)
           
protected StringKey(String pattern, boolean ignoreCase)
           
 
Method Summary
 boolean equals(Object obj)
           
 boolean getIgnoreCase()
           
 String getPattern()
           
 int hashCode()
           
 
Methods inherited from class com.hs.mail.imap.message.search.SearchKey
isComposite
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

protected String pattern
The pattern.


ignoreCase

protected boolean ignoreCase
Ignore case when comparing?

Constructor Detail

StringKey

protected StringKey(String pattern)

StringKey

protected StringKey(String pattern,
                    boolean ignoreCase)
Method Detail

getPattern

public String getPattern()

getIgnoreCase

public boolean getIgnoreCase()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.