javax.mail.search
类 RecipientTerm

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

public final class RecipientTerm
extends AddressTerm

This class implements comparisons for the Recipient Address headers.

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

字段摘要
protected  Message.RecipientType type
          The recipient type.
 
从类 javax.mail.search.AddressTerm 继承的字段
address
 
构造方法摘要
RecipientTerm(Message.RecipientType type, Address address)
          Constructor.
 
方法摘要
 boolean equals(Object obj)
          Equality comparison.
 Message.RecipientType getRecipientType()
          Return the type of recipient to match with.
 int hashCode()
          Compute a hashCode for this object.
 boolean match(Message msg)
          The match method.
 
从类 javax.mail.search.AddressTerm 继承的方法
getAddress, match
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

type

protected Message.RecipientType type
The recipient type.

构造方法详细信息

RecipientTerm

public RecipientTerm(Message.RecipientType type,
                     Address address)
Constructor.

参数:
type - the recipient type
address - the address to match for
方法详细信息

getRecipientType

public Message.RecipientType getRecipientType()
Return the type of recipient to match with.


match

public boolean match(Message msg)
The match method.

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

equals

public boolean equals(Object obj)
Equality comparison.

覆盖:
AddressTerm 中的 equals

hashCode

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

覆盖:
AddressTerm 中的 hashCode


Copyright © 2013. All Rights Reserved.