javax.mail.search

Class AddressTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
FromTerm, RecipientTerm

public abstract class AddressTerm
extends SearchTerm

A comparison of message addresses.
Version:
1.4
Author:
Chris Burdess

Field Summary

protected Address
address
The address.

Constructor Summary

AddressTerm(Address address)

Method Summary

boolean
equals(Object other)
Address
getAddress()
Returns the address to match.
int
hashCode()
protected boolean
match(Address address)
Returns true if the specified address matches the address specified in this term.

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)

getAddress

public Address getAddress()
Returns the address to match.

hashCode

public int hashCode()

match

protected boolean match(Address address)
Returns true if the specified address matches the address specified in this term.

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved