static <A> void moveElementFromCollectionToCollection(A a, Collection<A> src, Collection<A> target) { if (src != null) src.remove(a); if (target != null) target.add(a); }
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: | #1017347 |
Snippet name: | moveElementFromCollectionToCollection |
Eternal ID of this version: | #1017347/2 |
Text MD5: | b85ede65f63ce1ce201fc47096cf0721 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-17 21:47:50 |
Source code size: | 177 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 382 / 422 |
Version history: | 1 change(s) |
Referenced in: | [show references] |