Created
November 26, 2021 03:56
-
-
Save seanf/0719edbe7ebfe74f4a9716fe4ae30e95 to your computer and use it in GitHub Desktop.
describe: a cheap toString substitute for objects which may have verbose toString implementations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String describe(Object obj) { | |
return obj.getClass().getSimpleName() + '@' + System.identityHashCode(obj); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment