javax.mail.search

Class RecipientTerm

public final class RecipientTerm extends AddressTerm

A comparison of recipient headers in a message.

Version: 1.3

Author: Chris Burdess

Field Summary
protected Message.RecipientTypetype
The recipient type.
Constructor Summary
RecipientTerm(Message.RecipientType type, Address address)
Constructor.
Method Summary
booleanequals(Object other)
Message.RecipientTypegetRecipientType()
Returns the recipient type.
inthashCode()
booleanmatch(Message msg)
Returns true only if the recipient address in the given message matches the address specified in this term.

Field Detail

type

protected Message.RecipientType type
The recipient type.

Constructor Detail

RecipientTerm

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

Parameters: type the recipient type address the address to match

Method Detail

equals

public boolean equals(Object other)

getRecipientType

public Message.RecipientType getRecipientType()
Returns the recipient type.

hashCode

public int hashCode()

match

public boolean match(Message msg)
Returns true only if the recipient address in the given message matches the address specified in this term.
©