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

11
LINES

< > BotCompany Repo | #1010799 // Test expiringHelperMap [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (843L/6K).

!7

p {
  LinkedHashMap<S, Long> map = expiringHelperMap(10*1000, voidfunc(S s) {
    print("Removing: " + s);
});

  repeat with sleep 1 {
    map.put(str(sysNow()), now());
  }
}

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: #1010799
Snippet name: Test expiringHelperMap [OK]
Eternal ID of this version: #1010799/2
Text MD5: 4720aad056d76e8bd2193cea011ebd04
Transpilation MD5: e0309118125891b7e461fc328fdba467
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-03 19:00:28
Source code size: 190 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 471 / 1037
Version history: 1 change(s)
Referenced in: [show references]