Libraryless. Click here for Pure Java version (10704L/59K).
1 | static <A> AutoCloseable tempSyncAdd(Cl<A> l, A a) { |
2 | if (l == null) null; |
3 | if (!syncAdd(l, a)) null; |
4 | ret new tempSyncAdd_undo(l, a); |
5 | } |
6 | |
7 | srecord noeq tempSyncAdd_undo<A>(Cl<A> l, A a) is AutoCloseable { |
8 | close { syncRemove(l, a); } |
9 | } |
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: | 235 / 337 |
Version history: | 2 change(s) |
Referenced in: | [show references] |