Class MailAddress

java.lang.Object
com.icegreen.greenmail.mail.MailAddress

public class MailAddress extends Object
  • Constructor Details

    • MailAddress

      public MailAddress(String str)
  • Method Details

    • getName

      public String getName()
    • getHost

      public String getHost()
    • getUser

      public String getUser()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEmail

      public String getEmail()
    • equals

      public boolean equals(Object object)
      Compares this MailAddress object to another for equality. Two MailAddress objects are considered equal if their email, host, and user parts are equal, ignoring case.

      The name field was not considered in the equality check.

      Overrides:
      equals in class Object
      Parameters:
      object - The object to compare with.
      Returns:
      True if the objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Computes the hash code for this MailAddress object. The hash code is based on the name, host, user, and email fields.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code for this MailAddress object.