Libraryless. Click here for Pure Java version (3122L/18K).
svoid printObjectWithAllFields(O o) { if (o == null) { print("null"); ret; } print(shortClassName(o)); for (Field field : fieldObjects(o)) printIndent(field + ": " + getField(field, o)); print(); }
Began life as a copy of #1008875
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031338 |
Snippet name: | printObjectWithAllFields |
Eternal ID of this version: | #1031338/1 |
Text MD5: | f3eefc73c81903d87040546bdec0e6b7 |
Transpilation MD5: | 4ce8f4a0f23e5361cf9e35e1aff8f7f0 |
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:30:35 |
Source code size: | 215 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 171 / 240 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |