Here you can find the source of hash(int k)
public static int hash(int k)
//package com.java2s; //License from project: Apache License public class Main { public static int hash(int k) { k ^= k >>> 16;/*from ww w .j a v a 2 s . c o m*/ k *= 0x85ebca6b; k ^= k >>> 13; k *= 0xc2b2ae35; k ^= k >>> 16; return k; } public static int hash(long value) { return (int) (value ^ (value >>> 32)); } }