@Override
    public int hashCode() {
        int result = partition;
        result = 31 * result + (leader != null ? leader.hashCode() : 0);
        result = 31 * result + (replicas != null ? replicas.hashCode() : 0);
        result = 31 * result + (isr != null ? isr.hashCode() : 0);
        result = 31 * result + (elr != null ? elr.hashCode() : 0);
        result = 31 * result + (lastKnownElr != null ? lastKnownElr.hashCode() : 0);
        return result;
    }
Return the last known eligible leader replicas of the partition. Note that the ordering of the result is unspecified.
clients/src/main/java/org/apache/kafka/common/TopicPartitionInfo.java