Class MemberDetails

    • Method Detail

      • group

        public final GroupDetails group()

        The group details of a project member.

        Returns:
        The group details of a project member.
      • user

        public final UserDetails user()

        The user details of a project member.

        Returns:
        The user details of a project member.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromGroup

        public static MemberDetails fromGroup​(GroupDetails group)
        Create an instance of this class with group() initialized to the given value.

        The group details of a project member.

        Parameters:
        group - The group details of a project member.
      • fromGroup

        public static MemberDetails fromGroup​(Consumer<GroupDetails.Builder> group)
        Create an instance of this class with group() initialized to the given value.

        The group details of a project member.

        Parameters:
        group - The group details of a project member.
      • fromUser

        public static MemberDetails fromUser​(UserDetails user)
        Create an instance of this class with user() initialized to the given value.

        The user details of a project member.

        Parameters:
        user - The user details of a project member.
      • fromUser

        public static MemberDetails fromUser​(Consumer<UserDetails.Builder> user)
        Create an instance of this class with user() initialized to the given value.

        The user details of a project member.

        Parameters:
        user - The user details of a project member.