class CompareUtil {

    public static int nullSafeHashCode(Object obj) {
        if (obj != null) {
            return obj.hashCode();
        }
        return 0;
    }

    private  CompareUtil();

}