FileDocCategorySizeDatePackage
AddressTerm.javaAPI DocJavaMail 1.4.32995Tue Nov 17 10:38:12 GMT 2009javax.mail.search

AddressTerm

public abstract class AddressTerm extends SearchTerm
This class implements Message Address comparisons.
author
Bill Shannon
author
John Mani

Fields Summary
protected Address
address
The address.
private static final long
serialVersionUID
Constructors Summary
protected AddressTerm(Address address)


       
	this.address = address;
    
Methods Summary
public booleanequals(java.lang.Object obj)
Equality comparison.

	if (!(obj instanceof AddressTerm))
	    return false;
	AddressTerm at = (AddressTerm)obj;
	return at.address.equals(this.address);
    
public javax.mail.AddressgetAddress()
Return the address to match with.

	return address;
    
public inthashCode()
Compute a hashCode for this object.

	return address.hashCode();
    
protected booleanmatch(javax.mail.Address a)
Match against the argument Address.

	return (a.equals(address));