Here you can find the source of hashCode(final Object obj)
Parameter | Description |
---|---|
obj | The object to return the hash code for |
public static int hashCode(final Object obj)
//package com.java2s; //License from project: Apache License public class Main { /**// www . j a va2 s . com * @param obj The object to return the hash code for * @return The hash code for the given object. If null, 0 is used. */ public static int hashCode(final Object obj) { return (obj == null ? 0 : obj.hashCode()); } }