@Override
    public int hashCode() {
        return Objects.hash(topicId, partitions);
    }
This class is used to contain the data for a topic and its partitions in the interface to {@link Persister}.

@param <P> The type of {@link PartitionInfoData}
server-common/src/main/java/org/apache/kafka/server/group/share/TopicData.java