@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof TopicCreationGroup)) {
            return false;
        }
        TopicCreationGroup that = (TopicCreationGroup) o;
        return Objects.equals(name, that.name)
                && numPartitions == that.numPartitions
                && replicationFactor == that.replicationFactor
                && Objects.equals(inclusionPattern.pattern(), that.inclusionPattern.pattern())
                && Objects.equals(exclusionPattern.pattern(), that.exclusionPattern.pattern())
                && Objects.equals(otherConfigs, that.otherConfigs);
    }
Return the description for a new topic with the given {@code topic} name with the topic
settings defined for this topic creation group.

@param topic the name of the topic to be created

@return the topic description of the given topic with settings of this topic creation group
connect/runtime/src/main/java/org/apache/kafka/connect/util/TopicCreationGroup.java