Here you can find the source of hashCode(int[] ai)
public static int hashCode(int[] ai)
//package com.java2s; //License from project: LGPL public class Main { public static int hashCode(int[] ai) { int hashcode = 0; for (int i : ai) { hashcode = hashcode * 31 + i; }//w w w . j a va 2s .com return hashcode; } public static int hashCode(byte[] ab) { int hashcode = 0; for (byte b : ab) { hashcode = hashcode * 31 + b; } return hashcode; } }