Here you can find the source of hash(Object obj)
Parameter | Description |
---|---|
obj | a parameter |
public static Integer hash(Object obj)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w . j a va 2 s . co m * * @param obj * @return null when obj is null, otherwise obj.hashCode() */ public static Integer hash(Object obj) { Integer rtn = null; if (obj != null) { rtn = obj.hashCode(); } return rtn; } }