Here you can find the source of hashCode(Object object)
static public int hashCode(Object object)
//package com.java2s; public class Main { static public int hashCode(Object object) { return (object != null ? object.hashCode() : 0); }/*from w ww . j av a 2 s.c o m*/ }