@Override
    public int hashCode() {
        return topicPartitions != null ? topicPartitions.hashCode() : 0;
    }
Creates an instance with the specified parameters.

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