Here you can find the source of hash(Object... values)
public static int hash(Object... values)
//package com.java2s; //License from project: Apache License public class Main { public static int hash(Object... values) { int code = 17; for (Object value : values) { code += hashOrNull(value);/* ww w . j av a2 s . c om*/ code *= 37; } return code; } public static int hashOrNull(Object value) { return value == null ? 1 : value.hashCode(); } }