@Override
    public boolean equals(Object o) {
        if (!(o instanceof TopicAssignment)) return false;
        TopicAssignment other = (TopicAssignment) o;
        return assignments.equals(other.assignments);
    }
@return The replica assignment for each partition, where the index in the list corresponds to different partition.
metadata/src/main/java/org/apache/kafka/metadata/placement/TopicAssignment.java