java HashMap source parsing

1, hash value

 static final int hash(Object key) {
        int h;
        return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);
    }

 The high and low 16-bit or 16 divergent

 

Guess you like

Origin www.cnblogs.com/newlangwen/p/11845053.html