@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GroupTopicPartitionData<?> that = (GroupTopicPartitionData<?>) o;
        return Objects.equals(groupId, that.groupId) && Objects.equals(topicsData, that.topicsData);
    }
This class is used to contain the data for a group, 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/GroupTopicPartitionData.java