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

11
LINES

< > BotCompany Repo | #1022109 // sizeCalculation_shouldSkipObject - these are counted, but not recursed into

JavaX fragment (include)

static TreeSet<S> sizeCalculation_shouldSkipObject_set = asTreeSet(tlft([[
  java.io.
  java.lang.reflect.
  java.awt.
  javax.swing.
]]);

sbool sizeCalculation_shouldSkipObject(O o) {
  if (o instanceof Reference) true;
  ret startsWithOneOf_treeSet(className(o), sizeCalculation_shouldSkipObject_set);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022109
Snippet name: sizeCalculation_shouldSkipObject - these are counted, but not recursed into
Eternal ID of this version: #1022109/11
Text MD5: e790b41110bcd55d03327e418e089022
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-24 16:42:37
Source code size: 316 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 265 / 316
Version history: 10 change(s)
Referenced in: [show references]