查了一下源码(jdk8),记录一下吧,能记住就记一下吧!
static final int hash(Object key) { int h; return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16); }
查了一下源码(jdk8),记录一下吧,能记住就记一下吧!
static final int hash(Object key) { int h; return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16); }
转载于:https://www.cnblogs.com/hujinshui/p/10463882.html