public final class

RecipientTerm

extends AddressTerm
java.lang.Object
   ↳ com.google.code.javax.mail.search.SearchTerm
     ↳ com.google.code.javax.mail.search.AddressTerm
       ↳ com.google.code.javax.mail.search.RecipientTerm

Class Overview

This class implements comparisons for the Recipient Address headers.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.search.AddressTerm
From class com.google.code.javax.mail.search.SearchTerm
Fields
protected Message.RecipientType type The recipient type.
[Expand]
Inherited Fields
From class com.google.code.javax.mail.search.AddressTerm
Public Constructors
RecipientTerm(Message.RecipientType type, Address address)
Constructor.
Public Methods
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.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.search.AddressTerm
From class com.google.code.javax.mail.search.SearchTerm
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 6548700653122680468 (0x5ae1a88c29bef694)

Fields

protected Message.RecipientType type

The recipient type.

Public Constructors

public RecipientTerm (Message.RecipientType type, Address address)

Constructor.

Parameters
type The recipient type
address The address to match for

Public Methods

public boolean equals (Object obj)

Equality comparison.

Parameters
obj

public Message.RecipientType getRecipientType ()

Return the type of recipient to match with.

public int hashCode ()

Compute a hashCode for this object.

public boolean match (Message msg)

The match method.

Parameters
msg The address match is applied to this Message's recepient address
Returns
  • true if the match succeeds, otherwise false