1 | static <A> AutoCloseable tempAddToMultiSet(final MultiSet<A> ms, final A a) { |
2 | if (ms == null) null; |
3 | ms.add(a); |
4 | ret autocloseable { ms.remove(a); }; |
5 | } |
Began life as a copy of #1016546
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016563 |
Snippet name: | tempAddToMultiSet |
Eternal ID of this version: | #1016563/1 |
Text MD5: | 7cf438c200891aeee4b10b7daf1c90ad |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-23 17:20:48 |
Source code size: | 159 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 351 / 383 |
Referenced in: | [show references] |