@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PersisterStateBatch that = (PersisterStateBatch) o;
        return firstOffset == that.firstOffset && lastOffset == that.lastOffset && deliveryState == that.deliveryState && deliveryCount == that.deliveryCount;
    }
This class contains the information for a single batch of state information for use by the {@link Persister}.
server-common/src/main/java/org/apache/kafka/server/group/share/PersisterStateBatch.java