Here you can find the source of hashcode(Object... as)
public static int hashcode(Object... as)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w ww.jav a 2 s . c om*/ * Compute the hash code for the given items */ public static int hashcode(Object... as) { if (as == null) return 0; int h = 1; int i = 0; while (i < as.length) { if (as[i] != null) { h = 31 * h + as[i].hashCode(); i += 1; } } return h; } }