Here you can find the source of hash(Object... values)
public static int hash(Object... values)
//package com.java2s; //it under the terms of the GNU Affero General Public License as published by import java.util.Arrays; public class Main { /**//from ww w. ja va2s .com * Generates a hash code for a sequence of input values. */ public static int hash(Object... values) { return Arrays.hashCode(values); } /** * Note that this method doesn't work for arrays currently. * @param o may be <code>null</code> * @return hash code for o, as in <code>Object.hashCode()</code> */ public static int hashCode(Object o) { return (o == null) ? 0 : o.hashCode(); } }