StringTerm (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.mail.search Class StringTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by 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
另请参见:
Serialized Form

字段摘要
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.

重写:
equals in class Object

hashCode

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

重写:
hashCode in class Object

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.