Package overit.geocall.mail
Class Address
java.lang.Object
overit.geocall.mail.Address
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DBAddress
Class used to store the Internet Address and its variables
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the addressgetName()Returns the nameinthashCode()voidsetAddress(String address) Sets the addressvoidSets the nametoHtml()Returns the address to htmltoInternetAddress(String charset) Returns a newInternetAddresstoString()Returns the address to titled html
-
Field Details
-
_address
-
_name
-
-
Constructor Details
-
Address
protected Address()Empty constructor -
Address
Constructor for Address- Parameters:
indirizzo- The addressnome- The name
-
Address
Constructor for Address- Parameters:
indirizzo- The address
-
Address
Constructor for Address- Parameters:
indirizzo- TheInternetAddress
-
-
Method Details
-
toInternetAddress
Returns a newInternetAddress- Parameters:
charset- The charset- Returns:
- A new
InternetAddress
-
getName
Returns the name- Returns:
- The name
-
getAddress
Returns the address- Returns:
- The address
-
setName
Sets the name- Parameters:
name- The name
-
setAddress
Sets the address- Parameters:
address- The address
-
toString
-
toHtml
Returns the address to html- Returns:
- The address to html
-
toTitledHtml
Returns the address to titled html- Returns:
- The address to titled html
-
equals
-
hashCode
public int hashCode()
-