Here you can find the source of hash(Object... value)
public static long hash(Object... value)
//package com.java2s; public class Main { public static long hash(Object... value) { String key = toString(value); long hash; int i;/*ww w .jav a 2 s.c o m*/ for (hash = key.length(), i = 0; i < key.length(); ++i) hash = (hash << 4) ^ (hash >> 28) ^ key.charAt(i); return hash; } private static String toString(Object... values) { StringBuilder sb = new StringBuilder(); for (Object value : values) { sb.append(value.toString()); } return sb.toString(); } }