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:
FromTerm, RecipientTerm
This class implements Message Address comparisons.
- author:
Bill
- Shannon
- author:
John
- Mani
Field Summary |
---|
protected Address | address | The address. |
Methods from javax.mail.search.SearchTerm: |
---|
match |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.mail.search.AddressTerm Detail: |
public boolean equals(Object obj) {
if (!(obj instanceof AddressTerm))
return false;
AddressTerm at = (AddressTerm)obj;
return at.address.equals(this.address);
}
|
public Address getAddress() {
return address;
}
Return the address to match with. |
public int hashCode() {
return address.hashCode();
}
Compute a hashCode for this object. |
protected boolean match(Address a) {
return (a.equals(address));
}
Match against the argument Address. |