public class SecondaryEmail
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SecondaryEmail.Serializer
For internal use only.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
email |
protected boolean |
isVerified |
Constructor and Description |
---|
SecondaryEmail(java.lang.String email,
boolean isVerified) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEmail()
Secondary email address.
|
boolean |
getIsVerified()
Whether or not the secondary email address is verified to be owned by a
user.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String email
protected final boolean isVerified
public SecondaryEmail(java.lang.String email, boolean isVerified)
email
- Secondary email address. Must have length of at most 255,
match pattern "^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]\*\.[A-Za-z]{2,15}$
",
and not be null
.isVerified
- Whether or not the secondary email address is verified
to be owned by a user.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getEmail()
null
.public boolean getIsVerified()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.