- java.lang.Object
-
- jakarta.mail.search.SearchTerm
-
- jakarta.mail.search.AddressTerm
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FromTerm
,RecipientTerm
public abstract class AddressTerm extends SearchTerm
This class implements Message Address comparisons.- Author:
- Bill Shannon, John Mani
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AddressTerm(Address address)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Equality comparison.Address
getAddress()
Return the address to match with.int
hashCode()
Compute a hashCode for this object.protected boolean
match(Address a)
Match against the argument Address.-
Methods inherited from class jakarta.mail.search.SearchTerm
match
-
-
-
-
Field Detail
-
address
protected Address address
The address.
-
-
Constructor Detail
-
AddressTerm
protected AddressTerm(Address address)
Constructor.- Parameters:
address
- the address to match with.
-
-
Method Detail
-
getAddress
public Address getAddress()
Return the address to match with.- Returns:
- the adddress
-
match
protected boolean match(Address a)
Match against the argument Address.- Parameters:
a
- the address to match- Returns:
- true if it matches
-
equals
public boolean equals(java.lang.Object obj)
Equality comparison.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Compute a hashCode for this object.- Overrides:
hashCode
in classjava.lang.Object
-
-