Class SecondaryEmail


  • public class SecondaryEmail
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SecondaryEmail.Serializer
      For internal use only.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String email  
      protected boolean isVerified  
    • Constructor Summary

      Constructors 
      Constructor Description
      SecondaryEmail​(java.lang.String email, boolean isVerified)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • email

        protected final java.lang.String email
      • isVerified

        protected final boolean isVerified
    • Constructor Detail

      • SecondaryEmail

        public SecondaryEmail​(java.lang.String email,
                              boolean isVerified)
        Parameters:
        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.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getEmail

        public java.lang.String getEmail()
        Secondary email address.
        Returns:
        value for this field, never null.
      • getIsVerified

        public boolean getIsVerified()
        Whether or not the secondary email address is verified to be owned by a user.
        Returns:
        value for this field.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Returns:
        Formatted, multiline String representation of this object