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

7
LINES

< > BotCompany Repo | #1023395 // expiringSet - set with timeout, synchronized

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

Libraryless. Click here for Pure Java version (1954L/12K).

static Set expiringSet(long standardExpiryTime) {
  ret Collections.newSetFromMap((Map) syncExpiringMap(standardExpiryTime));
}

static Set expiringSet(double standardExpirySeconds) {
  ret Collections.newSetFromMap((Map) syncExpiringMap(standardExpirySeconds));
}

Author comment

Began life as a copy of #1019885

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: #1023395
Snippet name: expiringSet - set with timeout, synchronized
Eternal ID of this version: #1023395/3
Text MD5: 9e27c10972baa38b8c7c80daf9c55401
Transpilation MD5: 721cf7215b6587ec4baf9461f6688b80
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-05 13:31:59
Source code size: 270 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 192 / 265
Version history: 2 change(s)
Referenced in: [show references]