javax.mail.search

Class AddressTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
FromTerm, RecipientTerm

public abstract class AddressTerm
extends SearchTerm

Term that compares two addresses.

Field Summary

protected Address
address
The address.

Constructor Summary

AddressTerm(Address address)
Constructor taking the address for this term.

Method Summary

boolean
equals(Object other)
Address
getAddress()
Return the address of this term.
int
hashCode()
protected boolean
match(Address address)
Match to the supplied address.

Methods inherited from class javax.mail.search.SearchTerm

match

Field Details

address

protected Address address
The address.

Constructor Details

AddressTerm

protected AddressTerm(Address address)
Constructor taking the address for this term.
Parameters:
address - the address

Method Details

equals

public boolean equals(Object other)

getAddress

public Address getAddress()
Return the address of this term.
Returns:
the addre4ss

hashCode

public int hashCode()

match

protected boolean match(Address address)
Match to the supplied address.
Parameters:
address - the address to match with
Returns:
true if the addresses match