|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.goldeninnovations.smp.EmailAddress
public class EmailAddress
Represents a single email address.
Provides get/set methods to access userName, domain, and full email address.
Constructor Summary | |
---|---|
EmailAddress(String emailAddress)
Parses the address to verify it is valid. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDomain()
Returns the domain portion of the email address. |
String |
getUserName()
Returns the userName portion of the email address. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmailAddress(String emailAddress) throws IllegalArgumentException
emailAddress
- the full email address.
IllegalArgumentException
- thrown when the specified email address is invalid.Method Detail |
---|
public String getUserName()
public String getDomain()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |