@Override
    public boolean equals(Object o) {
        if (!(o instanceof TopicImage)) return false;
        TopicImage other = (TopicImage) o;
        return name.equals(other.name) &&
            id.equals(other.id) &&
            partitions.equals(other.partitions);
    }
Represents a topic in the metadata image.

This class is thread-safe.
metadata/src/main/java/org/apache/kafka/image/TopicImage.java