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

6
LINES

< > BotCompany Repo | #1029152 // recursiveObjectSizeWithPrintingMegabytes

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

Libraryless. Click here for Pure Java version (10751L/60K).

1  
static long recursiveObjectSizeWithPrintingMegabytes(RecursiveObjectSize ros default new, O o) {
2  
  new MBPrinter printer;
3  
  ros.onSizeChanged = r { printer.get(ros.size) };
4  
  ros.recurse(o);
5  
  ret ros.size;
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029152
Snippet name: recursiveObjectSizeWithPrintingMegabytes
Eternal ID of this version: #1029152/3
Text MD5: a2603759dbbbcc82b272d9a95c8a6a72
Transpilation MD5: e654d1e4971e0cf947a452a3ec68ca7b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-22 01:46:11
Source code size: 213 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 152 / 238
Version history: 2 change(s)
Referenced in: [show references]