Re: hash Code of a reference.

2007-08-30 Thread Raghu Angadi
Martin Traverso wrote: Try System.identityHashCode(...). http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#identityHashCode(java.lang.Object) Perfect. Exactly what I wanted. Thanks. Raghu. Martin On 8/30/07, Raghu Angadi <[EMAIL PROTECTED]> wrote: I want to get hashCode of a

Re: hash Code of a reference.

2007-08-30 Thread Martin Traverso
Try System.identityHashCode(...). http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#identityHashCode(java.lang.Object) Martin On 8/30/07, Raghu Angadi <[EMAIL PROTECTED]> wrote: > > > I want to get hashCode of a reference, i.e. Object.hashCode() or > something similar. ref.hashCode()

hash Code of a reference.

2007-08-30 Thread Raghu Angadi
I want to get hashCode of a reference, i.e. Object.hashCode() or something similar. ref.hashCode() won't work since this perticular class overrides hashCode(). Is there a simple way to get Object.hashCode() or some other hash of a ref? Right now I am thinking of adding a method 'int refHashC