Package jakarta.mail.search
Class AddressTerm
java.lang.Object
jakarta.mail.search.SearchTerm
jakarta.mail.search.AddressTerm
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FromTerm
,RecipientTerm
This class implements Message Address comparisons.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class jakarta.mail.search.SearchTerm
match
-
Field Details
-
address
The address.
-
-
Constructor Details
-
AddressTerm
-
-
Method Details
-
getAddress
Return the address to match with.- Returns:
- the adddress
-
match
Match against the argument Address.- Parameters:
a
- the address to match- Returns:
- true if it matches
-
equals
Equality comparison. -
hashCode
public int hashCode()Compute a hashCode for this object.
-