javax.mail.search
类 AddressStringTerm

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

public abstract class AddressStringTerm
extends StringTerm

This abstract class implements string comparisons for Message addresses.

Note that this class differs from the AddressTerm class in that this class does comparisons on address strings rather than Address objects.

从以下版本开始:
JavaMail 1.1
另请参见:
序列化表格

字段摘要
 
从类 javax.mail.search.StringTerm 继承的字段
ignoreCase, pattern
 
构造方法摘要
protected AddressStringTerm(String pattern)
          Constructor.
 
方法摘要
 boolean equals(Object obj)
          Equality comparison.
protected  boolean match(Address a)
          Check whether the address pattern specified in the constructor is a substring of the string representation of the given Address object.
 
从类 javax.mail.search.StringTerm 继承的方法
getIgnoreCase, getPattern, hashCode, match
 
从类 javax.mail.search.SearchTerm 继承的方法
match
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

AddressStringTerm

protected AddressStringTerm(String pattern)
Constructor.

参数:
pattern - the address pattern to be compared.
方法详细信息

match

protected boolean match(Address a)
Check whether the address pattern specified in the constructor is a substring of the string representation of the given Address object.

Note that if the string representation of the given Address object contains charset or transfer encodings, the encodings must be accounted for, during the match process.

参数:
a - The comparison is applied to this Address object.
返回:
true if the match succeeds, otherwise false.

equals

public boolean equals(Object obj)
Equality comparison.

覆盖:
StringTerm 中的 equals


Copyright © 2013. All Rights Reserved.