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

このクラスは Recipient Address ヘッダの比較を実装します。

関連項目:
直列化された形式

フィールドの概要
protected  Message.RecipientType type
          受信者の型です。
 
クラス javax.mail.search.AddressTerm から継承されたフィールド
address
 
コンストラクタの概要
RecipientTerm(Message.RecipientType type, Address address)
          コンストラクタです。
 
メソッドの概要
 boolean equals(Object obj)
          等価比較です。
 Message.RecipientType getRecipientType()
          照合する受信者の型を返します。
 int hashCode()
          このオブジェクトのハッシュコードを計算します。
 boolean match(Message msg)
          照合メソッドです。
 
クラス javax.mail.search.AddressTerm から継承されたメソッド
getAddress, match
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

type

protected Message.RecipientType type
受信者の型です。

コンストラクタの詳細

RecipientTerm

public RecipientTerm(Message.RecipientType type,
                     Address address)
コンストラクタです。

パラメータ:
type - 受信者の型
address - 照合するアドレス
メソッドの詳細

getRecipientType

public Message.RecipientType getRecipientType()
照合する受信者の型を返します。


match

public boolean match(Message msg)
照合メソッドです。

定義:
クラス SearchTerm 内の match
パラメータ:
msg - アドレス照合はこの Message の受信者アドレスに適用されます。
戻り値:
照合が成功する場合は true、そうでない場合は false

equals

public boolean equals(Object obj)
等価比較です。

オーバーライド:
クラス AddressTerm 内の equals

hashCode

public int hashCode()
このオブジェクトのハッシュコードを計算します。

オーバーライド:
クラス AddressTerm 内の hashCode