- 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 SummaryConstructors Modifier Constructor Description protectedAddressTerm(Address address)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Equality comparison.AddressgetAddress()Return the address to match with.inthashCode()Compute a hashCode for this object.protected booleanmatch(Address a)Match against the argument Address.- 
Methods inherited from class jakarta.mail.search.SearchTermmatch
 
- 
 
- 
- 
- 
Field Detail- 
addressprotected Address address The address.
 
- 
 - 
Constructor Detail- 
AddressTermprotected AddressTerm(Address address) Constructor.- Parameters:
- address- the address to match with.
 
 
- 
 - 
Method Detail- 
getAddresspublic Address getAddress() Return the address to match with.- Returns:
- the adddress
 
 - 
matchprotected boolean match(Address a) Match against the argument Address.- Parameters:
- a- the address to match
- Returns:
- true if it matches
 
 - 
equalspublic boolean equals(java.lang.Object obj) Equality comparison.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Compute a hashCode for this object.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-