/** * Performs an equality check for the given {@code proxy}. * * @param proxy * @param that * @return */ private boolean proxyEquals(@Nullable Object proxy, Object that) { if (!(that instanceof LazyLoadingProxy)) { return false; } if (that == proxy) { return true; } return proxyToString(proxy).equals(that.toString()); }
/** * Returns the hashcode for the given {@code proxy}. * * @param proxy * @return */ private int proxyHashCode(@Nullable Object proxy) { return proxyToString(proxy).hashCode(); }
return proxyToString(proxy);
/** * Performs an equality check for the given {@code proxy}. * * @param proxy * @param that * @return */ private boolean proxyEquals(@Nullable Object proxy, Object that) { if (!(that instanceof LazyLoadingProxy)) { return false; } if (that == proxy) { return true; } return proxyToString(proxy).equals(that.toString()); }
/** * Returns the hashcode for the given {@code proxy}. * * @param proxy * @return */ private int proxyHashCode(@Nullable Object proxy) { return proxyToString(proxy).hashCode(); }