Libraryless. Click here for Pure Java version (4748L/29K).
static void printObjectWithFields_struct(O o, S... fields) { if (o == null) { print("null"); ret; } print(shortClassName(o)); for (S field : fields) printIndent(field + ": " + structForUser(getOpt(o, field))); 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: | #1031337 |
Snippet name: | printObjectWithFields_struct |
Eternal ID of this version: | #1031337/1 |
Text MD5: | fcbe0851b80182c82635653c34311216 |
Transpilation MD5: | c18750823ab419c82e89b7e7298bb9a9 |
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:16 |
Source code size: | 238 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 138 / 193 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |