Here you can find the source of hashCode(Object obj)
Parameter | Description |
---|---|
obj | object or null |
public static int hashCode(Object obj)
//package com.java2s; //License from project: LGPL public class Main { /**/* w ww . ja va2s .co m*/ * Returns a hash code for a possibly null object. * * @param obj object or null * @return hash value */ public static int hashCode(Object obj) { return obj == null ? 0 : obj.hashCode(); } }