javax.mail.search
Class AddressTerm
java.lang.Object
  
javax.mail.search.SearchTerm
      
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: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
 
- See Also:
 - Serialized Form
 
 
| 
Constructor Summary | 
protected  | 
AddressTerm(Address address)
 
          Constructor taking the address for this term. | 
 
 
 
 
address
protected Address address
- The address.
 
AddressTerm
protected AddressTerm(Address address)
- Constructor taking the address for this term.
- Parameters:
 address - the address
 
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 © 2003-2009 The Apache Software Foundation. All Rights Reserved.