Package com.helger.commons.email
Class EmailAddress
java.lang.Object
com.helger.commons.email.EmailAddress
- All Implemented Interfaces:
IEmailAddress,IHasDisplayName
This class handles a single email address. It is split into an address part
and an optional name. The personal name is optional and may be
null.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionEmailAddress(IEmailAddress aAddress) EmailAddress(String sAddress) EmailAddress(String sAddress, String sPersonal) -
Method Summary
Modifier and TypeMethodDescriptionstatic EmailAddresscreateOnDemand(String sAddress) static EmailAddresscreateOnDemand(String sAddress, String sPersonal) booleaninthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.email.IEmailAddress
getDisplayName, hasPersonal
-
Constructor Details
-
EmailAddress
-
EmailAddress
-
EmailAddress
-
-
Method Details
-
getAddress
- Specified by:
getAddressin interfaceIEmailAddress- Returns:
- The main email address. May not be
null.
-
getPersonal
- Specified by:
getPersonalin interfaceIEmailAddress- Returns:
- The personal name. May be
null.
-
equals
-
hashCode
public int hashCode() -
toString
-
createOnDemand
-
createOnDemand
-