Here you can find the source of hashCodeOrDefault(Object obj)
public static int hashCodeOrDefault(Object obj)
//package com.java2s; //License from project: Apache License public class Main { public static int hashCodeOrDefault(Object obj) { return hashCodeOrDefault(obj, 0); }/*from www . ja va 2 s. com*/ public static int hashCodeOrDefault(Object obj, int otherHashCode) { return obj == null ? otherHashCode : obj.hashCode(); } }