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: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 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 © 2006 Apache Software Foundation. All Rights Reserved.