Libraryless. Click here for Pure Java version (2897L/17K).
1 | static void printObjectWithFields(O o, S... fields) {
|
2 | if (o == null) { print("null"); ret; }
|
3 | print(shortClassName(o)); |
4 | for (S field : fields) |
5 | printIndent(field + ": " + getOpt(o, field)); |
6 | print(); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008875 |
| Snippet name: | printObjectWithFields |
| Eternal ID of this version: | #1008875/3 |
| Text MD5: | be1803943c6f7016c904a12d899782fc |
| Transpilation MD5: | 85e29f538fdb1fdaee42bcb44639a910 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-05 16:28:44 |
| Source code size: | 216 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 791 / 894 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |