Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1008875 // printObjectWithFields

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2897L/17K).

static void printObjectWithFields(O o, S... fields) {
  if (o == null) { print("null"); ret; }
  print(shortClassName(o));
  for (S field : fields)
    printIndent(field + ": " + getOpt(o, field));
  print();
}

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: 459 / 519
Version history: 2 change(s)
Referenced in: [show references]