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

5
LINES

< > BotCompany Repo | #1016563 // tempAddToMultiSet

JavaX fragment (include)

static <A> AutoCloseable tempAddToMultiSet(final MultiSet<A> ms, final A a) {
  if (ms == null) null;
  ms.add(a);
  ret autocloseable { ms.remove(a); };
}

Author comment

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: 349 / 380
Referenced in: [show references]