javax.mail.search

Class AddressTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
FromTerm, RecipientTerm

public abstract class AddressTerm
extends SearchTerm

This class implements Message Address comparisons.

Field Summary

protected Address
address
The address.

Constructor Summary

AddressTerm(Address address)

Method Summary

boolean
equals(Object other)
Equality comparison.
Address
getAddress()
Return the address to match with.
int
hashCode()
Compute a hashCode for this object.
protected boolean
match(Address address)
Match against the argument 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)

Method Details

equals

public boolean equals(Object other)
Equality comparison.


getAddress

public Address getAddress()
Return the address to match with.


hashCode

public int hashCode()
Compute a hashCode for this object.


match

protected boolean match(Address address)
Match against the argument Address.