@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MemberSubscriptionAndAssignmentImpl that = (MemberSubscriptionAndAssignmentImpl) o;
        return rackId.equals(that.rackId) &&
            instanceId.equals(that.instanceId) &&
            subscribedTopicIds.equals(that.subscribedTopicIds) &&
            memberAssignment.equals(that.memberAssignment);
    }
Constructs a new {@code MemberSubscriptionAndAssignmentImpl}.

@param rackId                The rack Id.
@param subscribedTopicIds    The set of subscribed topic Ids.
@param memberAssignment      The current member assignment.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/MemberSubscriptionAndAssignmentImpl.java