@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MemberAssignment that = (MemberAssignment) o;

        return Objects.equals(topicPartitions, that.topicPartitions);
    }
Creates an instance with the specified parameters.

@param topicPartitions List of topic partitions
clients/src/main/java/org/apache/kafka/clients/admin/MemberAssignment.java