@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ListConsumerGroupOffsetsSpec)) {
            return false;
        }
        ListConsumerGroupOffsetsSpec that = (ListConsumerGroupOffsetsSpec) o;
        return Objects.equals(topicPartitions, that.topicPartitions);
    }
Returns the topic partitions whose offsets are to be listed for a consumer group.
{@code null} indicates that offsets of all partitions of the group are to be listed.
clients/src/main/java/org/apache/kafka/clients/admin/ListConsumerGroupOffsetsSpec.java