javax.mail.search
类 HeaderTerm

java.lang.Object
  继承者 javax.mail.search.SearchTerm
      继承者 javax.mail.search.StringTerm
          继承者 javax.mail.search.HeaderTerm
所有已实现的接口:
Serializable

public final class HeaderTerm
extends StringTerm

This class implements comparisons for Message headers. The comparison is case-insensitive.

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

字段摘要
protected  String headerName
          The name of the header.
 
从类 javax.mail.search.StringTerm 继承的字段
ignoreCase, pattern
 
构造方法摘要
HeaderTerm(String headerName, String pattern)
          Constructor.
 
方法摘要
 boolean equals(Object obj)
          Equality comparison.
 String getHeaderName()
          Return the name of the header to compare with.
 int hashCode()
          Compute a hashCode for this object.
 boolean match(Message msg)
          The header match method.
 
从类 javax.mail.search.StringTerm 继承的方法
getIgnoreCase, getPattern, match
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

headerName

protected String headerName
The name of the header.

构造方法详细信息

HeaderTerm

public HeaderTerm(String headerName,
                  String pattern)
Constructor.

参数:
headerName - The name of the header
pattern - The pattern to search for
方法详细信息

getHeaderName

public String getHeaderName()
Return the name of the header to compare with.


match

public boolean match(Message msg)
The header match method.

指定者:
SearchTerm 中的 match
参数:
msg - The match is applied to this Message's header
返回:
true if the match succeeds, otherwise false

equals

public boolean equals(Object obj)
Equality comparison.

覆盖:
StringTerm 中的 equals

hashCode

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

覆盖:
StringTerm 中的 hashCode


Copyright © 2013. All Rights Reserved.