How can you get the hash code for an instance of a class if the class overrode hashCode()?

John Zukowski

The System class method identityHashCode() allows you to get this information:

int code = System.identityHashCode(anObject);

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.