Closed mccoyst closed 12 years ago
Scott found a solution to avoid the linear lookup: http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#identityHashCode(java.lang.Object)
There is a java.util.IdentityHashMap, but I need to keep the weak keys behavior of WeakHashMap.
Scott found a solution to avoid the linear lookup: http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#identityHashCode(java.lang.Object)
There is a java.util.IdentityHashMap, but I need to keep the weak keys behavior of WeakHashMap.