com.upokecenter.mail.Address
# com.upokecenter.mail.Address
public class Address extends Object
Represents an email address.
Constructors
Methods
-
boolean equals(Object obj)
Determines whether this object and another object are equal. -
final String getDomain()
Gets the domain of this email address (the part after the “@” sign). -
final String getLocalPart()
Gets the local part of this email address (the part before the “@” sign). -
int hashCode()
Returns a hash code for this address object. -
String toString()
Converts this address object to a text string.
Method Details
equals
public boolean equals(Object obj)
Determines whether this object and another object are equal.
Overrides:
equals
in classObject
Parameters:
obj
- The parameterobj
is an arbitrary object.
Returns:
true
if this object and another object are equal; otherwise,false
.
getLocalPart
public final String getLocalPart()
Gets the local part of this email address (the part before the “@” sign).
Returns:
- The local part of this email address (the part before the “@” sign).
toString
public String toString()
Converts this address object to a text string.
Overrides:
toString
in classObject
Returns:
- A string representation of this object.
hashCode
public int hashCode()
Returns a hash code for this address object. No application or process identifiers are used in the hash code calculation.
Overrides:
hashCode
in classObject
Returns:
- A hash code for this instance.
getDomain
public final String getDomain()
Gets the domain of this email address (the part after the “@” sign).
Returns:
- The domain of this email address (the part after the “@” sign).