Class MailAddress


  • public class MailAddress
    extends Object
    Specifies an email address.
    Author:
    Yohann Chastagnier
    • Method Detail

      • withName

        public MailAddress withName​(String name)
        Permits to specify the name of the person or organization linked to the email.
        Parameters:
        name - the functional name associated to the email. If the name is not defined, then an empty string is taken into account.
        Returns:
        the completed instance.
      • getEmail

        public String getEmail()
        Gets the email.
        Returns:
        the email.
      • getName

        public String getName()
        Gets the name.
        Returns:
        the functional name.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object