Libraryless. Click here for Pure Java version (10704L/59K).
static <A> AutoCloseable tempSyncAdd(Cl<A> l, A a) { if (l == null) null; if (!syncAdd(l, a)) null; ret new tempSyncAdd_undo(l, a); } srecord noeq tempSyncAdd_undo<A>(Cl<A> l, A a) is AutoCloseable { close { syncRemove(l, a); } }
Began life as a copy of #1017722
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036623 |
Snippet name: | tempSyncAdd - temporarily add to collection, synchronized |
Eternal ID of this version: | #1036623/3 |
Text MD5: | 66a988f7f212e56a1700c2daf7b6e255 |
Transpilation MD5: | c538e0f16eb41c3d89669edb86998e1f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-05-23 16:45:47 |
Source code size: | 248 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 173 / 240 |
Version history: | 2 change(s) |
Referenced in: | [show references] |