Here you can find the source of intHash(final long a)
public static int intHash(final long a)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w ww .j av a 2s.com * If the specified value is in int range, the returned value is identical. * * @return An int hash of the specified value. */ public static int intHash(final long a) { int hash = (int) (a >> 32) + (int) a; if (a < 0) { hash++; } return hash; } }