static <A> void addOrRemove(Collection<A> c, A a, bool add) { if (add) c.add(a); else c.remove(a); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005926 |
Snippet name: | addOrRemove |
Eternal ID of this version: | #1005926/1 |
Text MD5: | 5e0652ad965f1e135899f3b51fcb11af |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-12 20:59:05 |
Source code size: | 117 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 557 / 575 |
Referenced in: | [show references] |