Package javax.mail.search
Class AddressTerm
- java.lang.Object
-
- javax.mail.search.SearchTerm
-
- javax.mail.search.AddressTerm
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FromTerm,RecipientTerm
public abstract class AddressTerm extends SearchTerm
A comparison of message addresses.- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAddressTerm(Address address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)AddressgetAddress()Returns the address to match.inthashCode()protected booleanmatch(Address address)Returns true if the specified address matches the address specified in this term.-
Methods inherited from class javax.mail.search.SearchTerm
match
-
-
-
-
Field Detail
-
address
protected Address address
The address.
-
-
Constructor Detail
-
AddressTerm
protected AddressTerm(Address address)
-
-
Method Detail
-
getAddress
public Address getAddress()
Returns the address to match.
-
match
protected boolean match(Address address)
Returns true if the specified address matches the address specified in this term.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-