@Override
    public int hashCode() {
        if (getId() == null)
            throw new IllegalStateException("Id has not been set.");

        return getId().hashCode();
    }
Returns the hashCode of this hit: The hashcode of its id
container-search/src/main/java/com/yahoo/search/result/Hit.java