Here you can find the source of hashCode(Object o)
Parameter | Description |
---|---|
o | may be <code>null</code> |
Object.hashCode()
public static int hashCode(Object o)
//package com.java2s; //it under the terms of the GNU Affero General Public License as published by public class Main { /**/*from w ww . ja v a 2s .c o m*/ * Note that this method doesn't work for arrays currently. * @param o may be <code>null</code> * @return hash code for o, as in <code>Object.hashCode()</code> */ public static int hashCode(Object o) { return (o == null) ? 0 : o.hashCode(); } }