Class ImmutableMember

    • Method Detail

      • verifiedEmail

        public boolean verifiedEmail()
        The user's verifiedEmail
        Specified by:
        verifiedEmail in interface Member
      • verifiedPhone

        public boolean verifiedPhone()
        The user's verifiedPhone
        Specified by:
        verifiedPhone in interface Member
      • withUserID

        public final ImmutableMember withUserID​(@Nullable
                                                String value)
        Copy the current immutable object by setting a value for the userID attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for userID (can be null)
        Returns:
        A modified copy of the this object
      • withRole

        public final ImmutableMember withRole​(@Nullable
                                              String value)
        Copy the current immutable object by setting a value for the role attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for role (can be null)
        Returns:
        A modified copy of the this object
      • withName

        public final ImmutableMember withName​(@Nullable
                                              String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name (can be null)
        Returns:
        A modified copy of the this object
      • withEmail

        public final ImmutableMember withEmail​(@Nullable
                                               String value)
        Copy the current immutable object by setting a value for the email attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for email (can be null)
        Returns:
        A modified copy of the this object
      • withPhone

        public final ImmutableMember withPhone​(@Nullable
                                               String value)
        Copy the current immutable object by setting a value for the phone attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for phone (can be null)
        Returns:
        A modified copy of the this object
      • withVerifiedEmail

        public final ImmutableMember withVerifiedEmail​(boolean value)
        Copy the current immutable object by setting a value for the verifiedEmail attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for verifiedEmail
        Returns:
        A modified copy of the this object
      • withVerifiedPhone

        public final ImmutableMember withVerifiedPhone​(boolean value)
        Copy the current immutable object by setting a value for the verifiedPhone attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for verifiedPhone
        Returns:
        A modified copy of the this object
      • withConnectID

        public final ImmutableMember withConnectID​(@Nullable
                                                   String value)
        Copy the current immutable object by setting a value for the connectID attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for connectID (can be null)
        Returns:
        A modified copy of the this object
      • withGitHubLogin

        public final ImmutableMember withGitHubLogin​(@Nullable
                                                     String value)
        Copy the current immutable object by setting a value for the gitHubLogin attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for gitHubLogin (can be null)
        Returns:
        A modified copy of the this object
      • withAuthType

        public final ImmutableMember withAuthType​(@Nullable
                                                  String value)
        Copy the current immutable object by setting a value for the authType attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for authType (can be null)
        Returns:
        A modified copy of the this object
      • withAvatarURL

        public final ImmutableMember withAvatarURL​(@Nullable
                                                   String value)
        Copy the current immutable object by setting a value for the avatarURL attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for avatarURL (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableMember that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: userID, role, name, email, phone, verifiedEmail, verifiedPhone, connectID, gitHubLogin, authType, avatarURL.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value Member with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableMember copyOf​(Member instance)
        Creates an immutable copy of a Member value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable Member instance