@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            DefaultReplicaView that = (DefaultReplicaView) o;
            return logEndOffset == that.logEndOffset &&
                    Objects.equals(endpoint, that.endpoint) &&
                    Objects.equals(timeSinceLastCaughtUpMs, that.timeSinceLastCaughtUpMs);
        }
Comparator for ReplicaView that returns in the order of "most caught up". This is used for deterministic
selection of a replica when there is a tie from a selector.
clients/src/main/java/org/apache/kafka/common/replica/ReplicaView.java