Last active
October 3, 2022 18:26
-
-
Save lene/c7cc9d69020262b418e38a6bcf1147a8 to your computer and use it in GitHub Desktop.
Scala: print names and types of all attributes of an unknown object
This file contains hidden or 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
UNKNOWN_OBJECT.getClass.getDeclaredFields.foreach(v => println(s"${v.getName}: $v")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment