javax.mail.search
abstract public class: AddressTerm [javadoc |
source]
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.AddressTerm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RecipientTerm, FromTerm
Term that compares two addresses.
- version:
$ - Rev: 126550 $ $Date: 2005-01-26 14:27:45 -0800 (Wed, 26 Jan 2005) $
| Field Summary |
|---|
| protected Address | address | The address. |
| Constructor: |
protected AddressTerm(Address address) {
this.address = address;
}
Constructor taking the address for this term. Parameters:
address - the address
|
| Methods from javax.mail.search.SearchTerm: |
|---|
|
match |
| Method from javax.mail.search.AddressTerm Detail: |
public boolean equals(Object other) {
if (this == other) return true;
if (other instanceof AddressTerm == false) return false;
return address.equals(((AddressTerm) other).address);
}
|
public Address getAddress() {
return address;
}
Return the address of this term. |
public int hashCode() {
return address.hashCode();
}
|
protected boolean match(Address address) {
return this.address.equals(address);
}
Match to the supplied address. |