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

10
LINES

< > BotCompany Repo | #1031789 // test_sizesOfLinkedHashMapAndSmallArrayMap

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

Libraryless. Click here for Pure Java version (6098L/37K).

svoid test_sizesOfLinkedHashMapAndSmallArrayMap() {
  test_SmallArrayBasedMap();
  new LinkedHashMap map;
  print(deepObjectSize(map));
  map.put("hello", "hello");
  print(deepObjectSizeWithout(map, keysAndValues(map));
  print(deepObjectSize(map));
  print("sortedArray" := deepObjectSizeWithout(toSortedArrayBasedMap(map), keysAndValues(map)));
  print("smallArray" := deepObjectSizeWithout(toSmallArrayBasedMap(map), keysAndValues(map)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031789
Snippet name: test_sizesOfLinkedHashMapAndSmallArrayMap
Eternal ID of this version: #1031789/1
Text MD5: ecaa9a6d0dc113f4693adf87097c5aa2
Transpilation MD5: cebfcaa8effb41d41cafc9f99067f3da
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 19:22:23
Source code size: 453 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 141 / 208
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)