javax.mail.search
类 StringTerm

java.lang.Object
  继承者 javax.mail.search.SearchTerm
      继承者 javax.mail.search.StringTerm
所有已实现的接口:
Serializable
直接已知子类:
AddressStringTerm, BodyTerm, HeaderTerm, MessageIDTerm, SubjectTerm

public abstract class StringTerm
extends SearchTerm

This class implements the match method for Strings. The current implementation provides only for substring matching. We could add comparisons (like strcmp ...).

作者:
Bill Shannon, John Mani
另请参见:
序列化表格

字段摘要
protected  boolean ignoreCase
          Ignore case when comparing?
protected  String pattern
          The pattern.
 
构造方法摘要
protected StringTerm(String pattern)
           
protected StringTerm(String pattern, boolean ignoreCase)
           
 
方法摘要
 boolean equals(Object obj)
          Equality comparison.
 boolean getIgnoreCase()
          Return true if we should ignore case when matching.
 String getPattern()
          Return the string to match with.
 int hashCode()
          Compute a hashCode for this object.
protected  boolean match(String s)
           
 
从类 javax.mail.search.SearchTerm 继承的方法
match
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

pattern

protected String pattern
The pattern.


ignoreCase

protected boolean ignoreCase
Ignore case when comparing?

构造方法详细信息

StringTerm

protected StringTerm(String pattern)

StringTerm

protected StringTerm(String pattern,
                     boolean ignoreCase)
方法详细信息

getPattern

public String getPattern()
Return the string to match with.


getIgnoreCase

public boolean getIgnoreCase()
Return true if we should ignore case when matching.


match

protected boolean match(String s)

equals

public boolean equals(Object obj)
Equality comparison.

覆盖:
Object 中的 equals

hashCode

public int hashCode()
Compute a hashCode for this object.

覆盖:
Object 中的 hashCode


Copyright © 2013. All Rights Reserved.