@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            FetchPosition that = (FetchPosition) o;
            return offset == that.offset &&
                    offsetEpoch.equals(that.offsetEpoch) &&
                    currentLeader.equals(that.currentLeader);
        }
Represents the position of a partition subscription.

This includes the offset and epoch from the last record in
the batch from a FetchResponse. It also includes the leader epoch at the time the batch was consumed.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/SubscriptionState.java