public class EmailAddress extends java.lang.Object implements ContactMethod
| Constructor and Description |
|---|
EmailAddress(java.lang.String emailAddress)
Constructor by Email Address.
|
EmailAddress(java.lang.String emailAddress,
boolean verified)
Constructor by Email Address and Verified value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDomain()
Getter to extract the domain from the Email Address.
|
java.lang.String |
getFormatted()
Returns the Email Address in lower case format.
|
java.lang.String |
getMasked()
Returns the Email Address is masked format.
|
java.lang.String |
getType()
Getter for the class type.
|
java.lang.String |
getUserName()
Getter to extract the Username from the Email Address.
|
java.lang.String |
getValue()
Returns the Email Address value.
|
boolean |
isEmpty()
Indicates if the Email Address is empty.
|
boolean |
isValid()
Match the pattern for a common Email Address.
|
boolean |
isVerified()
Indicates if the Email Address is verified.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEmptypublic EmailAddress(java.lang.String emailAddress)
Will validate if the provided Email Address is not empty.
emailAddress - The Email Address.public EmailAddress(java.lang.String emailAddress,
boolean verified)
Will validate if the provided Email Address is not empty.
emailAddress - The Email Address.verified - Indicates if the Email Address is Verified.public java.lang.String getFormatted()
getFormatted in interface ContactMethodpublic java.lang.String getMasked()
getMasked in interface ContactMethodpublic java.lang.String getValue()
getValue in interface ContactMethodpublic boolean isVerified()
isVerified in interface ContactMethodpublic boolean isEmpty()
isEmpty in interface ContactMethodpublic boolean isValid()
isValid in interface ContactMethodpublic java.lang.String getType()
getType in interface ContactMethodpublic java.lang.String getDomain()
public java.lang.String getUserName()
public java.lang.String toString()
toString in class java.lang.Object