javax.mail.search

Class AddressTerm

public abstract class AddressTerm extends SearchTerm

Term that compares two addresses.
Field Summary
protected Addressaddress
The address.
Constructor Summary
protected AddressTerm(Address address)
Constructor taking the address for this term.
Method Summary
booleanequals(Object other)
AddressgetAddress()
Return the address of this term.
inthashCode()
protected booleanmatch(Address address)
Match to the supplied address.

Field Detail

address

protected Address address
The address.

Constructor Detail

AddressTerm

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

Parameters: address the address

Method Detail

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