javax.mail.search
クラス RecipientStringTerm

java.lang.Object
  上位を拡張 javax.mail.search.SearchTerm
      上位を拡張 javax.mail.search.StringTerm
          上位を拡張 javax.mail.search.AddressStringTerm
              上位を拡張 javax.mail.search.RecipientStringTerm
すべての実装されたインタフェース:
Serializable

public final class RecipientStringTerm
extends AddressStringTerm

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

このクラスは RecipientTerm クラスと異なる事に注意して下さい。 このクラスは Address オブジェクトではなく、アドレス文字列について比較を行います。 この文字列比較は大文字と小文字を区別しません。

導入されたバージョン:
JavaMail 1.1
関連項目:
直列化された形式

フィールドの概要
 
クラス javax.mail.search.StringTerm から継承されたフィールド
ignoreCase, pattern
 
コンストラクタの概要
RecipientStringTerm(Message.RecipientType type, String pattern)
          コンストラクタです。
 
メソッドの概要
 boolean equals(Object obj)
          等価比較です。
 Message.RecipientType getRecipientType()
          照合する受信者の型を返します。
 int hashCode()
          このオブジェクトのハッシュコードを計算します。
 boolean match(Message msg)
          コンストラクタで指定されたアドレスが、 この Message の受信者アドレスの部分文字列であるかどうかをチェックします。
 
クラス javax.mail.search.AddressStringTerm から継承されたメソッド
match
 
クラス javax.mail.search.StringTerm から継承されたメソッド
getIgnoreCase, getPattern, match
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RecipientStringTerm

public RecipientStringTerm(Message.RecipientType type,
                           String pattern)
コンストラクタです。

パラメータ:
type - 受信者の型
pattern - 比較されるアドレスパターン
メソッドの詳細

getRecipientType

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


match

public boolean match(Message msg)
コンストラクタで指定されたアドレスが、 この Message の受信者アドレスの部分文字列であるかどうかをチェックします。

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

equals

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

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

hashCode

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

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