javax.mail.search
Class AddressTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.AddressTerm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FromTerm, RecipientTerm

public abstract class AddressTerm
extends SearchTerm

Term that compares two addresses.

Version:
$Rev: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
See Also:
Serialized Form

Field Summary
protected  Address address
          The address.
 
Constructor Summary
protected 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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

getAddress

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

Returns:
the addre4ss

match

protected boolean match(Address address)
Match to the supplied address.

Parameters:
address - the address to match with
Returns:
true if the addresses match

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2006 Apache Software Foundation. All Rights Reserved.