Here you can find the source of hash(int k)
public static int hash(int k)
//package com.java2s; //License from project: Open Source License public class Main { public static int hash(int k) { k = (k ^ 61) ^ (k >>> 16); k = k + (k << 3);//w w w .j ava 2 s. c om k = k ^ (k >>> 4); k = k * 0x27d4eb2d; // TODO k = k ^ (k >>> 15); return k; } }