int () { int hash = 0; ObjectIterator<Entry<Object>> iterator = int2ObjectEntrySet().fastIterator(); while (iterator.hasNext()) { Entry<Object> entry = iterator.next(); int key = entry.getIntKey(); hash = (hash * 31 + key) * 31 + System.identityHashCode(entry.getValue()); } return hash; }