Here you can find the source of hash(Object o)
public static int hash(Object o)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static int hash(Object o) { if (o == null) return 0; return o.hashCode(); }/*from ww w .j a v a2 s. c o m*/ public static int hash(Object... values) { return Arrays.hashCode(values); } public static int hashCode(Object o) { return o != null ? o.hashCode() : 0; } }